Don't refer to optarg in dwarf.c function

This one is passed in optarg as its argument.

	PR binutils/17926
	* dwarf.c (dwarf_select_sections_by_letters): Don't refer to optarg.
This commit is contained in:
Alan Modra 2015-02-05 17:20:38 +10:30
parent 54ebc97a0d
commit 7cc78d0780
2 changed files with 6 additions and 1 deletions

View 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

View 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;
}
}