Commit 2ac86f90 by Mark Mitchell Committed by Mark Mitchell

* c-typeck.c (c_start_case): Fix typo.

From-SVN: r36479
parent 60e9d01c
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
......
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment