This is the mail archive of the
binutils-cvs@sourceware.org
mailing list for the binutils project.
[binutils-gdb] Don't refer to optarg in dwarf.c function
- From: Alan Modra <amodra at sourceware dot org>
- To: bfd-cvs at sourceware dot org
- Date: 5 Feb 2015 07:22:15 -0000
- Subject: [binutils-gdb] Don't refer to optarg in dwarf.c function
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=7cc78d0780858b2f4a76c2867351cbfbb339c327
commit 7cc78d0780858b2f4a76c2867351cbfbb339c327
Author: Alan Modra <amodra@gmail.com>
Date: Thu Feb 5 17:20:38 2015 +1030
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.
Diff:
---
binutils/ChangeLog | 5 +++++
binutils/dwarf.c | 2 +-
2 files changed, 6 insertions(+), 1 deletion(-)
diff --git a/binutils/ChangeLog b/binutils/ChangeLog
index d5cec77..5182809 100644
--- a/binutils/ChangeLog
+++ b/binutils/ChangeLog
@@ -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
diff --git a/binutils/dwarf.c b/binutils/dwarf.c
index b65bb7b..aa19725 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;
}
}