* objdump.c (dump_target_specific): Fix NULL pointer test.
authorAlan Modra <amodra@gmail.com>
Thu, 17 Jan 2013 02:24:47 +0000 (02:24 +0000)
committerAlan Modra <amodra@gmail.com>
Thu, 17 Jan 2013 02:24:47 +0000 (02:24 +0000)
binutils/ChangeLog
binutils/objdump.c

index 5b8916b1b7410c1f4d3fd3374a76892b5b2dc765..d5f6e5de0dcdbc55a32871342987b368f2e2e92d 100644 (file)
@@ -1,3 +1,7 @@
+2013-01-17  Nickolai Zeldovich  <nickolai@csail.mit.edu>
+
+       * objdump.c (dump_target_specific): Fix NULL pointer test.
+
 2013-01-16  Alan Modra  <amodra@gmail.com>
 
        PR binutils/15018
index 9164d83f700cdc415ae7f3024ad81a96906285a8..394a647b3aab1ca55053205614cb4faf14733906 100644 (file)
@@ -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;