diff options
author | Janne Blomqvist <jb@gcc.gnu.org> | 2011-04-19 21:18:08 +0300 |
---|---|---|
committer | Janne Blomqvist <jb@gcc.gnu.org> | 2011-04-19 21:18:08 +0300 |
commit | f7d2e5d418d88cccfd1d54daebd57de464d9bd92 (patch) | |
tree | 56748efb9f39e18ae2c80ea30f5ada095403d4e6 /gcc/fortran/scanner.c | |
parent | 6c13c5f2ac8e8180c45d06e7d4ddd529f61a79b1 (diff) | |
download | gcc-f7d2e5d418d88cccfd1d54daebd57de464d9bd92.zip gcc-f7d2e5d418d88cccfd1d54daebd57de464d9bd92.tar.gz gcc-f7d2e5d418d88cccfd1d54daebd57de464d9bd92.tar.bz2 |
Use XCNEWVAR instead of xcalloc
From-SVN: r172730
Diffstat (limited to 'gcc/fortran/scanner.c')
-rw-r--r-- | gcc/fortran/scanner.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/fortran/scanner.c b/gcc/fortran/scanner.c index f99429a..0c127d49 100644 --- a/gcc/fortran/scanner.c +++ b/gcc/fortran/scanner.c @@ -2012,8 +2012,8 @@ load_file (const char *realfilename, const char *displayedname, bool initial) /* Add line. */ - b = (gfc_linebuf *) xcalloc (1, gfc_linebuf_header_size - + (len + 1) * sizeof (gfc_char_t)); + b = XCNEWVAR (gfc_linebuf, gfc_linebuf_header_size + + (len + 1) * sizeof (gfc_char_t)); b->location = linemap_line_start (line_table, current_file->line++, 120); |