mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-11-23 01:53:38 +08:00
bfd: Don't call bfd_write with 0 size
There is no need to call bfd_write with 0 size. * elf-strtab.c (_bfd_elf_strtab_emit): Don't call bfd_write with 0 size.
This commit is contained in:
parent
90840a8656
commit
32235d9095
@ -326,7 +326,7 @@ _bfd_elf_strtab_emit (register bfd *abfd, struct elf_strtab_hash *tab)
|
||||
|
||||
BFD_ASSERT (tab->array[i]->refcount == 0);
|
||||
len = tab->array[i]->len;
|
||||
if ((int) len < 0)
|
||||
if ((int) len <= 0)
|
||||
continue;
|
||||
|
||||
str = tab->array[i]->root.string;
|
||||
|
Loading…
Reference in New Issue
Block a user