aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorMark Mitchell <mark@codesourcery.com>2000-09-18 05:02:11 +0000
committerMark Mitchell <mmitchel@gcc.gnu.org>2000-09-18 05:02:11 +0000
commit2ac86f90af484a3fc814b7a4877b9b553f0a276f (patch)
tree1d7b18f90277cd942b2f5c4f5faa0dec38ebb1d8 /gcc
parent60e9d01cf742140d4d56eb8aaf7eced14a923141 (diff)
downloadgcc-2ac86f90af484a3fc814b7a4877b9b553f0a276f.zip
gcc-2ac86f90af484a3fc814b7a4877b9b553f0a276f.tar.gz
gcc-2ac86f90af484a3fc814b7a4877b9b553f0a276f.tar.bz2
* c-typeck.c (c_start_case): Fix typo.
From-SVN: r36479
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog4
-rw-r--r--gcc/c-typeck.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 2d08c82..f14c29b 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,7 @@
+2000-09-17 Mark Mitchell <mark@codesourcery.com>
+
+ * c-typeck.c (c_start_case): Fix typo.
+
2000-09-17 Joseph S. Myers <jsm28@cam.ac.uk>
* c-decl.c (grokdeclarator): Don't give a warning about defaulting
diff --git a/gcc/c-typeck.c b/gcc/c-typeck.c
index 75fb57a..aa5dbaa 100644
--- a/gcc/c-typeck.c
+++ b/gcc/c-typeck.c
@@ -6786,7 +6786,7 @@ c_start_case (exp)
}
/* Add this new SWITCH_STMT to the stack. */
- cs = (struct c_switch *) xmalloc (sizeof (cs));
+ cs = (struct c_switch *) xmalloc (sizeof (*cs));
cs->switch_stmt = build_stmt (SWITCH_STMT, exp, NULL_TREE, NULL_TREE);
cs->cases = splay_tree_new (case_compare, NULL, NULL);
cs->next = switch_stack;