From 4c23c3fec9ff02255d9f946256d57bb790a8fc58 Mon Sep 17 00:00:00 2001 From: Alexis La Goutte Date: Tue, 22 Nov 2016 20:53:00 +0100 Subject: ndiReader: fix ‘jObj_main/jArray_detProto’ may be used uninitialized in this function [-Werror=maybe-uninitialized] MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- example/ndpiReader.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'example') diff --git a/example/ndpiReader.c b/example/ndpiReader.c index 42cae63cf..8c1ac37ce 100644 --- a/example/ndpiReader.c +++ b/example/ndpiReader.c @@ -766,7 +766,7 @@ static void printResults(u_int64_t tot_usec) { char buf[32]; #ifdef HAVE_JSON_C FILE *json_fp = NULL; - json_object *jObj_main, *jObj_trafficStats, *jArray_detProto, *jObj; + json_object *jObj_main = NULL, *jObj_trafficStats, *jArray_detProto = NULL, *jObj; #endif long long unsigned int breed_stats[NUM_BREEDS] = { 0 }; -- cgit v1.2.3