From: Alan Modra Date: Thu, 17 Jan 2013 02:24:47 +0000 (+0000) Subject: * objdump.c (dump_target_specific): Fix NULL pointer test. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c32d6f7bd43c74fbe950858502e6e9ba6eaca2af;p=binutils-gdb.git * objdump.c (dump_target_specific): Fix NULL pointer test. --- diff --git a/binutils/ChangeLog b/binutils/ChangeLog index 5b8916b1b74..d5f6e5de0dc 100644 --- a/binutils/ChangeLog +++ b/binutils/ChangeLog @@ -1,3 +1,7 @@ +2013-01-17 Nickolai Zeldovich + + * objdump.c (dump_target_specific): Fix NULL pointer test. + 2013-01-16 Alan Modra PR binutils/15018 diff --git a/binutils/objdump.c b/binutils/objdump.c index 9164d83f700..394a647b3aa 100644 --- a/binutils/objdump.c +++ b/binutils/objdump.c @@ -2651,7 +2651,7 @@ dump_target_specific (bfd *abfd) if ((*desc)->filter (abfd)) break; - if (desc == NULL) + if (*desc == NULL) { non_fatal (_("option -P/--private not supported by this file")); return;