Module Name: src
Committed By: martin
Date: Mon Dec 14 12:34:07 UTC 2020
Modified Files:
src/external/gpl3/gdb/dist/gdb: c-exp.y
Log Message:
Initialize namelen
To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/external/gpl3/gdb/dist/gdb/c-exp.y
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/external/gpl3/gdb/dist/gdb/c-exp.y
diff -u src/external/gpl3/gdb/dist/gdb/c-exp.y:1.3 src/external/gpl3/gdb/dist/gdb/c-exp.y:1.4
--- src/external/gpl3/gdb/dist/gdb/c-exp.y:1.3 Sun Dec 13 16:50:47 2020
+++ src/external/gpl3/gdb/dist/gdb/c-exp.y Mon Dec 14 12:34:07 2020
@@ -2614,7 +2614,7 @@ get_namelen (const char *tokstart, bool
int c;
int namelen;
- for (c = tokstart[namelen];
+ for (namelen = 0, c = tokstart[namelen];
(c == '_' || c == '$' || (dot && c == '.') || c_ident_is_alnum (c) || c == '<');)
{
/* Template parameter lists are part of the name.