aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dtd_parse.l
diff options
context:
space:
mode:
authorGerald Combs <gerald@wireshark.org>2005-09-20 17:24:23 +0000
committerGerald Combs <gerald@wireshark.org>2005-09-20 17:24:23 +0000
commit5cb2a5e1628ab28e4dbb56f6b834c858ee736b98 (patch)
tree80238ce0c4161cfa70dc3f1e408bfb75e38065dc /epan/dtd_parse.l
parentba83bf145fc57c59b16d67ca78a97e8e6716d193 (diff)
Fix a couple of errors found by valgrind.
svn path=/trunk/; revision=15900
Diffstat (limited to 'epan/dtd_parse.l')
-rw-r--r--epan/dtd_parse.l3
1 files changed, 2 insertions, 1 deletions
diff --git a/epan/dtd_parse.l b/epan/dtd_parse.l
index 38a905b4ef..c0b1abfae0 100644
--- a/epan/dtd_parse.l
+++ b/epan/dtd_parse.l
@@ -82,7 +82,8 @@
#define DTD_PARSE(token_type) \
{ DEBUG_DTD_TOKEN; \
- build_data->location = location; \
+ build_data->location = location; \
+ location = NULL; \
DtdParse(pParser, (token_type), new_token(yytext), build_data); \
if(build_data->error->len > 0) yyterminate(); \
}