From 5cb2a5e1628ab28e4dbb56f6b834c858ee736b98 Mon Sep 17 00:00:00 2001 From: Gerald Combs Date: Tue, 20 Sep 2005 17:24:23 +0000 Subject: Fix a couple of errors found by valgrind. svn path=/trunk/; revision=15900 --- epan/dtd_parse.l | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'epan/dtd_parse.l') 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(); \ } -- cgit v1.2.3