From 3f4ce6dadd129438f7ffb2e0e776d4c08c49aef1 Mon Sep 17 00:00:00 2001 From: Victor Julien Date: Wed, 27 Nov 2013 20:28:28 +0100 Subject: [PATCH] rule parser: don't use uninitialized value --- src/detect-parse.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/detect-parse.c b/src/detect-parse.c index 599a862dd3..177fd4e900 100644 --- a/src/detect-parse.c +++ b/src/detect-parse.c @@ -486,7 +486,7 @@ static int SigParseOptions(DetectEngineCtx *de_ctx, Signature *s, char *optstr, int ret = 0; SigTableElmt *st = NULL; char optname[64]; - char optvalue[8192]; + char optvalue[8192] = ""; ret = pcre_exec(option_pcre, option_pcre_extra, optstr, strlen(optstr), 0, 0, ov, MAX_SUBSTRINGS); /* if successful, we either have: