Don't refer to optarg in dwarf.c function
authorAlan Modra <amodra@gmail.com>
Thu, 5 Feb 2015 06:50:38 +0000 (17:20 +1030)
committerAlan Modra <amodra@gmail.com>
Thu, 5 Feb 2015 07:20:37 +0000 (17:50 +1030)
This one is passed in optarg as its argument.

PR binutils/17926
* dwarf.c (dwarf_select_sections_by_letters): Don't refer to optarg.

binutils/ChangeLog
binutils/dwarf.c

index d5cec775a0e75d49fb6fa5d737aca615d215c4a5..5182809c1a42ff09e759665ef039d0626b82227b 100644 (file)
@@ -1,3 +1,8 @@
+2015-02-05  Alan Modra  <amodra@gmail.com>
+
+       PR binutils/17926
+       * dwarf.c (dwarf_select_sections_by_letters): Don't refer to optarg.
+
 2015-02-04  Nick Clifton  <nickc@redhat.com>
 
        PR binutils/17531
index b65bb7b8ea00881b6f974be1393a075257112ea5..aa19725632505b9ca093c4255b5e55677cf05599 100644 (file)
@@ -7414,7 +7414,7 @@ dwarf_select_sections_by_letters (const char *letters)
        break;
 
       default:
-       warn (_("Unrecognized debug option '%s'\n"), optarg);
+       warn (_("Unrecognized debug option '%s'\n"), letters);
        break;
       }
 }