From: Victor Julien Date: Wed, 27 Nov 2013 19:28:28 +0000 (+0100) Subject: rule parser: don't use uninitialized value X-Git-Tag: suricata-2.0beta2~123 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3f4ce6dadd129438f7ffb2e0e776d4c08c49aef1;p=thirdparty%2Fsuricata.git rule parser: don't use uninitialized value --- 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: