From 4fb176a9f4fcb3f67924dce64681c2c49ec74152 Mon Sep 17 00:00:00 2001 From: Edward Rudd Date: Sat, 25 Oct 2008 16:44:56 +0000 Subject: make sure per-func data is CLEARED upon initialization --- utility/logparse.c | 1 + 1 file changed, 1 insertion(+) diff --git a/utility/logparse.c b/utility/logparse.c index 7ea6bc1..086f454 100644 --- a/utility/logparse.c +++ b/utility/logparse.c @@ -146,6 +146,7 @@ static void parser_add_func(apr_pool_t *p, const char *const name, s = apr_palloc(p, sizeof(parser_func_t)); s->func = func; s->pos = id; + s->data = NULL; s->linedata = &g_parser_linedata; apr_hash_set(g_parser_funcs, lowerstr(p, name), APR_HASH_KEY_STRING, s); } -- cgit