mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-11-29 04:53:56 +08:00
Fix compile time warning about using a possibly uninitialised variable.
This commit is contained in:
parent
fb9b4b7e53
commit
09fe2662a7
@ -1,3 +1,8 @@
|
||||
2017-01-03 Nick Clifton <nickc@redhat.com>
|
||||
|
||||
* mach-o.c (bfd_mach_o_lookup_uuid_command): Fix compile time
|
||||
warning about using a possibly uninitialised variable.
|
||||
|
||||
2017-01-02 Alan Modra <amodra@gmail.com>
|
||||
|
||||
* elf32-hppa.c (ensure_undef_weak_dynamic): New function.
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user