diff options
author | Edward Rudd | 2008-10-25 16:44:56 +0000 |
---|---|---|
committer | Edward Rudd | 2008-10-25 16:44:56 +0000 |
commit | 4fb176a9f4fcb3f67924dce64681c2c49ec74152 (patch) | |
tree | 243ff366b90a16285122038b6edbc9d8443e2e13 /utility | |
parent | 19e09e15d96fa891d18fd07bb0f751faa0a7fc7a (diff) |
make sure per-func data is CLEARED upon initialization
Diffstat (limited to 'utility')
-rw-r--r-- | utility/logparse.c | 1 |
1 files changed, 1 insertions, 0 deletions
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, | |||
146 | s = apr_palloc(p, sizeof(parser_func_t)); | 146 | s = apr_palloc(p, sizeof(parser_func_t)); |
147 | s->func = func; | 147 | s->func = func; |
148 | s->pos = id; | 148 | s->pos = id; |
149 | s->data = NULL; | ||
149 | s->linedata = &g_parser_linedata; | 150 | s->linedata = &g_parser_linedata; |
150 | apr_hash_set(g_parser_funcs, lowerstr(p, name), APR_HASH_KEY_STRING, s); | 151 | apr_hash_set(g_parser_funcs, lowerstr(p, name), APR_HASH_KEY_STRING, s); |
151 | } | 152 | } |