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 d5cec77..5182809 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 b65bb7b..aa19725 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;
       }
 }