Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/external/gpl3/gdb/dist/gdb Initialize namelen



details:   https://anonhg.NetBSD.org/src/rev/920698153802
branches:  trunk
changeset: 957896:920698153802
user:      martin <martin%NetBSD.org@localhost>
date:      Mon Dec 14 12:34:07 2020 +0000

description:
Initialize namelen

diffstat:

 external/gpl3/gdb/dist/gdb/c-exp.y |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r 809e4cee3730 -r 920698153802 external/gpl3/gdb/dist/gdb/c-exp.y
--- a/external/gpl3/gdb/dist/gdb/c-exp.y        Mon Dec 14 11:42:44 2020 +0000
+++ b/external/gpl3/gdb/dist/gdb/c-exp.y        Mon Dec 14 12:34:07 2020 +0000
@@ -2614,7 +2614,7 @@
   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.



Home | Main Index | Thread Index | Old Index