diff options
author | davek <davek@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-05-14 16:46:44 +0000 |
---|---|---|
committer | davek <davek@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-05-14 16:46:44 +0000 |
commit | 36211c58e2f7334211ed8d2f50f4e1aacca5cbd2 (patch) | |
tree | 73b8ca7e8947468b4d98ac5db9d00daff338d8ea /gcc/genautomata.c | |
parent | 73e3989aeab6085ce9aea6ce8ca2490849472c44 (diff) | |
download | gcc-36211c58e2f7334211ed8d2f50f4e1aacca5cbd2.tar.gz |
2007-05-14 Dave Korn <dave.korn@artimi.com>
* genautomata.c (gen_regexp_el): Allocate correct size for regexp.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@124718 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/genautomata.c')
-rw-r--r-- | gcc/genautomata.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/genautomata.c b/gcc/genautomata.c index 26eb281e812..5bfdf96fa43 100644 --- a/gcc/genautomata.c +++ b/gcc/genautomata.c @@ -1542,12 +1542,12 @@ gen_regexp_el (const char *str) } else if (strcmp (str, NOTHING_NAME) == 0) { - regexp = create_node (sizeof (struct decl)); + regexp = create_node (sizeof *regexp); regexp->mode = rm_nothing; } else { - regexp = create_node (sizeof (struct decl)); + regexp = create_node (sizeof *regexp); regexp->mode = rm_unit; REGEXP_UNIT (regexp)->name = str; } |