From: Victor Julien Date: Wed, 8 Jan 2014 16:20:58 +0000 (+0100) Subject: app proto detect: fix valgrind test warnings X-Git-Tag: suricata-2.0rc1~260 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ff16d6fa53033890145c0bd0abc75c54972beae5;p=thirdparty%2Fsuricata.git app proto detect: fix valgrind test warnings Only in unittests when debug is enabled would valgrind warn about a print statement. --- diff --git a/src/app-layer-detect-proto.c b/src/app-layer-detect-proto.c index cd1add8fce..e9e2c637c3 100644 --- a/src/app-layer-detect-proto.c +++ b/src/app-layer-detect-proto.c @@ -2706,7 +2706,7 @@ static int AppLayerProtoDetectPPTestData(AppLayerProtoDetectProbingParser *pp, int no_of_ip_proto) { int result = 0; - int i, j, k; + int i = -1, j = -1 , k = -1; #ifdef DEBUG int dir = 0; #endif