diff options
author | Alan Modra <amodra@gmail.com> | 2000-09-20 04:20:26 +0000 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2000-09-20 04:20:26 +0000 |
commit | b3ea35849fbbdfb9a2396e4e9369d28f8597338a (patch) | |
tree | 5e660b2b5007cb997e3f609c349ee48a32c6de54 /bfd/section.c | |
parent | 6091b433d78be72dd7970fcd91822ae2b9db7a81 (diff) | |
download | gdb-b3ea35849fbbdfb9a2396e4e9369d28f8597338a.zip gdb-b3ea35849fbbdfb9a2396e4e9369d28f8597338a.tar.gz gdb-b3ea35849fbbdfb9a2396e4e9369d28f8597338a.tar.bz2 |
Handle out of memory situations.
Diffstat (limited to 'bfd/section.c')
-rw-r--r-- | bfd/section.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/bfd/section.c b/bfd/section.c index e70cdaa..4c858f6 100644 --- a/bfd/section.c +++ b/bfd/section.c @@ -672,6 +672,8 @@ bfd_get_unique_section_name (abfd, templat, count) len = strlen (templat); sname = bfd_malloc (len + 8); + if (sname == NULL) + return NULL; strcpy (sname, templat); num = 1; if (count != NULL) |