forked from Imagelibrary/binutils-gdb
Use xmalloc rather than malloc
As far as I can tell, the following comment is false nowadays. /* Calls to m-alloc get turned by sed into xm-alloc. */ Remove it, and call xmalloc. * ldlex.l (yy_create_string_buffer): Use xmalloc rather than malloc. * lexsup.c (parse_args): Likewise.
This commit is contained in:
@@ -617,7 +617,7 @@ parse_args (unsigned argc, char **argv)
|
||||
longopts = (struct option *)
|
||||
xmalloc (sizeof (*longopts) * (OPTION_COUNT + 1));
|
||||
really_longopts = (struct option *)
|
||||
malloc (sizeof (*really_longopts) * (OPTION_COUNT + 1));
|
||||
xmalloc (sizeof (*really_longopts) * (OPTION_COUNT + 1));
|
||||
|
||||
/* Starting the short option string with '-' is for programs that
|
||||
expect options and other ARGV-elements in any order and that care about
|
||||
|
||||
Reference in New Issue
Block a user