From 7cc78d0780858b2f4a76c2867351cbfbb339c327 Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Thu, 5 Feb 2015 17:20:38 +1030 Subject: [PATCH] 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. --- binutils/ChangeLog | 5 +++++ binutils/dwarf.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/binutils/ChangeLog b/binutils/ChangeLog index d5cec775a0e..5182809c1a4 100644 --- a/binutils/ChangeLog +++ b/binutils/ChangeLog @@ -1,3 +1,8 @@ +2015-02-05 Alan Modra + + PR binutils/17926 + * dwarf.c (dwarf_select_sections_by_letters): Don't refer to optarg. + 2015-02-04 Nick Clifton PR binutils/17531 diff --git a/binutils/dwarf.c b/binutils/dwarf.c index b65bb7b8ea0..aa197256325 100644 --- a/binutils/dwarf.c +++ b/binutils/dwarf.c @@ -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; } } -- 2.30.2