diff options
author | jb <jb@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-04-19 17:42:51 +0000 |
---|---|---|
committer | jb <jb@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-04-19 17:42:51 +0000 |
commit | dfa3fb6ab6ee3a6ad8c96ab3ca796fb645cc6afd (patch) | |
tree | 8ec237a8fb4cca5124b47fb04acac619c6387e9a /gcc/fortran/options.c | |
parent | 046f323efd9149bb5d2d5638466e98ed238b7635 (diff) |
Replace gfc_getmem with XCNEW, XCNEWVEC or xcalloc
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@172728 138bc75d-0d04-0410-961f-82ee72b054a4
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 a4d9a66062c1..bc65f6bf66b7 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++) |