mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-26 01:07:52 +00:00
* core.c (core_create_line_syms): Use xstrdup rather than strdup.
* source.c (source_file_lookup_path): Likewise.
This commit is contained in:
@@ -36,7 +36,7 @@ DEFUN (source_file_lookup_path, (path), const char *path)
|
||||
|
||||
sf = (Source_File *) xmalloc (sizeof (*sf));
|
||||
memset (sf, 0, sizeof (*sf));
|
||||
sf->name = strdup (path);
|
||||
sf->name = xstrdup (path);
|
||||
sf->next = first_src_file;
|
||||
first_src_file = sf;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user