diff options
Diffstat (limited to 'gcc/genrecog.c')
-rw-r--r-- | gcc/genrecog.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/gcc/genrecog.c b/gcc/genrecog.c index 65387123436..76f37496107 100644 --- a/gcc/genrecog.c +++ b/gcc/genrecog.c @@ -316,9 +316,8 @@ extern void debug_decision_list static struct decision * new_decision (const char *position, struct decision_head *last) { - struct decision *new = xmalloc (sizeof (struct decision)); + struct decision *new = xcalloc (1, sizeof (struct decision)); - memset (new, 0, sizeof (*new)); new->success = *last; new->position = xstrdup (position); new->number = next_number++; |