* c-typeck.c (c_start_case): Fix typo.
authorMark Mitchell <mark@codesourcery.com>
Mon, 18 Sep 2000 05:02:11 +0000 (05:02 +0000)
committerMark Mitchell <mmitchel@gcc.gnu.org>
Mon, 18 Sep 2000 05:02:11 +0000 (05:02 +0000)
From-SVN: r36479

gcc/ChangeLog
gcc/c-typeck.c

index 2d08c82d4e235e3363564832bacf91798e6c6d5a..f14c29be88cb3d78b62aa130ab4ec4fe30673de6 100644 (file)
@@ -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
index 75fb57a6b6179d124cb0b36bd30c33e49db8c5f2..aa5dbaaeae1583b52f45d39650a2682fd66f2de5 100644 (file)
@@ -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;