Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-8]: src/external/historical/nawk/dist Pull up following revision(...
details: https://anonhg.NetBSD.org/src/rev/8e08c941d2a7
branches: netbsd-8
changeset: 434473:8e08c941d2a7
user: msaitoh <msaitoh%NetBSD.org@localhost>
date: Fri Dec 08 05:56:04 2017 +0000
description:
Pull up following revision(s) (requested by dholland in ticket #425):
external/historical/nawk/dist/lex.c: revision 1.3
PR/52516: Guy Incognito: Fix memory leak; setsymtab already calls tostring()
for the buffer, don't do it twice.
XXX: pullup-8
diffstat:
external/historical/nawk/dist/lex.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diffs (12 lines):
diff -r 795d98f21d71 -r 8e08c941d2a7 external/historical/nawk/dist/lex.c
--- a/external/historical/nawk/dist/lex.c Fri Dec 08 05:48:21 2017 +0000
+++ b/external/historical/nawk/dist/lex.c Fri Dec 08 05:56:04 2017 +0000
@@ -201,7 +201,7 @@
if (isalpha(c) || c == '_')
return word(buf);
if (isdigit(c)) {
- yylval.cp = setsymtab(buf, tostring(buf), atof(buf), CON|NUM, symtab);
+ yylval.cp = setsymtab(buf, buf, atof(buf), CON|NUM, symtab);
/* should this also have STR set? */
RET(NUMBER);
}
Home |
Main Index |
Thread Index |
Old Index