diff options
author | ghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-08-11 21:47:39 +0000 |
---|---|---|
committer | ghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-08-11 21:47:39 +0000 |
commit | 9c985aeccc2419d2c3af8eb0a36954e4709d6ce6 (patch) | |
tree | 94bcf5915821086716a7469523e1815e7340f194 /gcc/fixinc | |
parent | 5b89bf44d35ed7ec2d02d20108af48a2db19a8da (diff) | |
download | gcc-9c985aeccc2419d2c3af8eb0a36954e4709d6ce6.tar.gz |
* config/avr/avr.c (avr_init_once): Use xcalloc in lieu of
xmalloc/memset.
* config/ia64/ia64.c (ia64_reorg): Likewise.
* conflict.c (conflict_graph_new): Likewise.
* fixinc/fixincl.c (run_compiles): Likewise.
* genattrtab.c (optimize_attrs): Likewise.
* genrecog.c (new_decision): Likewise.
* haifa-sched.c (schedule_block): Likewise.
* hashtable.c (ht_create): Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@70337 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/fixinc')
-rw-r--r-- | gcc/fixinc/fixincl.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/gcc/fixinc/fixincl.c b/gcc/fixinc/fixincl.c index 2d24c17237c..5b92c3ce097 100644 --- a/gcc/fixinc/fixincl.c +++ b/gcc/fixinc/fixincl.c @@ -481,11 +481,10 @@ run_compiles (void) { tFixDesc *p_fixd = fixDescList; int fix_ct = FIX_COUNT; - regex_t *p_re = xmalloc (REGEX_COUNT * sizeof (regex_t)); + regex_t *p_re = xcalloc (REGEX_COUNT, sizeof (regex_t)); /* Make sure compile_re does not stumble across invalid data */ - memset (p_re, '\0', REGEX_COUNT * sizeof (regex_t)); memset (&incl_quote_re, '\0', sizeof (regex_t)); compile_re (incl_quote_pat, &incl_quote_re, 1, |