X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=bfd%2Fmach-o.c;h=2c1973c2a42bdea0f1b33ac450332138ea70df56;hb=cd6402916febae6d8a4e62c572ea6fd487eebb61;hp=8bf1149de001c043af3c7dae9e8096d0b6b9e852;hpb=2571583aed598dd3f9651b53434e5f177a0e3cf7;p=deliverable%2Fbinutils-gdb.git diff --git a/bfd/mach-o.c b/bfd/mach-o.c index 8bf1149de0..2c1973c2a4 100644 --- a/bfd/mach-o.c +++ b/bfd/mach-o.c @@ -1898,7 +1898,7 @@ bfd_mach_o_write_symtab_content (bfd *abfd, bfd_mach_o_symtab_command *sym) if (bfd_seek (abfd, sym->stroff, SEEK_SET) != 0) goto err; - if (_bfd_stringtab_emit (abfd, strtab) != TRUE) + if (!_bfd_stringtab_emit (abfd, strtab)) goto err; /* Pad string table. */ @@ -5641,9 +5641,9 @@ bfd_mach_o_core_file_failing_signal (bfd *abfd ATTRIBUTE_UNUSED) static bfd_mach_o_uuid_command * bfd_mach_o_lookup_uuid_command (bfd *abfd) { - bfd_mach_o_load_command *uuid_cmd; + bfd_mach_o_load_command *uuid_cmd = NULL; int ncmd = bfd_mach_o_lookup_command (abfd, BFD_MACH_O_LC_UUID, &uuid_cmd); - if (ncmd != 1) + if (ncmd != 1 || uuid_cmd == NULL) return FALSE; return &uuid_cmd->command.uuid; }