aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog4
-rw-r--r--gdb/cp-name-parser.y2
2 files changed, 5 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 67f65c4..80dbb66 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,7 @@
+2017-11-08 Pedro Alves <palves@redhat.com>
+
+ * cp-name-parser.y (main): Don't initialize extra_chars.
+
2017-11-07 Tom Tromey <tom@tromey.com>
* event-top.h (command_handler): Constify.
diff --git a/gdb/cp-name-parser.y b/gdb/cp-name-parser.y
index d430ae7..33ecf13 100644
--- a/gdb/cp-name-parser.y
+++ b/gdb/cp-name-parser.y
@@ -2129,7 +2129,7 @@ internal_error (const char *file, int line, const char *fmt, ...)
int
main (int argc, char **argv)
{
- char *str2, *extra_chars = "", c;
+ char *str2, *extra_chars, c;
char buf[65536];
int arg;
const char *errmsg;