diff options
author | Janne Blomqvist <jb@gcc.gnu.org> | 2011-04-19 20:42:51 +0300 |
---|---|---|
committer | Janne Blomqvist <jb@gcc.gnu.org> | 2011-04-19 20:42:51 +0300 |
commit | 93acb62caabb343900fb68d3bd76dd36406a7ad4 (patch) | |
tree | 8ec237a8fb4cca5124b47fb04acac619c6387e9a /gcc/fortran/options.c | |
parent | 60bea929924f57c886ee5380d24bfe6640030d54 (diff) | |
download | gcc-93acb62caabb343900fb68d3bd76dd36406a7ad4.tar.gz |
Replace gfc_getmem with XCNEW, XCNEWVEC or xcalloc
From-SVN: r172728
Diffstat (limited to 'gcc/fortran/options.c')
-rw-r--r-- | gcc/fortran/options.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/fortran/options.c b/gcc/fortran/options.c index a4d9a66062c..bc65f6bf66b 100644 --- a/gcc/fortran/options.c +++ b/gcc/fortran/options.c @@ -471,7 +471,7 @@ gfc_handle_module_path_options (const char *arg) if (gfc_option.module_dir != NULL) gfc_fatal_error ("gfortran: Only one -J option allowed"); - gfc_option.module_dir = (char *) gfc_getmem (strlen (arg) + 2); + gfc_option.module_dir = XCNEWVEC (char, strlen (arg) + 2); strcpy (gfc_option.module_dir, arg); gfc_add_include_path (gfc_option.module_dir, true, false); @@ -1056,7 +1056,7 @@ gfc_get_option_string (void) } } - result = (char *) gfc_getmem (len); + result = XCNEWVEC (char, len); pos = 0; for (j = 1; j < save_decoded_options_count; j++) |