From ff16d6fa53033890145c0bd0abc75c54972beae5 Mon Sep 17 00:00:00 2001 From: Victor Julien Date: Wed, 8 Jan 2014 17:20:58 +0100 Subject: [PATCH] app proto detect: fix valgrind test warnings Only in unittests when debug is enabled would valgrind warn about a print statement. --- src/app-layer-detect-proto.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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