diff options
author | Alexis La Goutte <alexis.lagoutte@gmail.com> | 2016-11-22 20:53:00 +0100 |
---|---|---|
committer | Alexis La Goutte <alexis.lagoutte@gmail.com> | 2016-11-22 20:56:14 +0100 |
commit | 4c23c3fec9ff02255d9f946256d57bb790a8fc58 (patch) | |
tree | 129e52dd8a79da79b30723b767d0e7262013dc97 | |
parent | 2ab1faf05a9256262548a06a702de7b513506e65 (diff) |
ndiReader: fix ‘jObj_main/jArray_detProto’ may be used uninitialized in this function [-Werror=maybe-uninitialized]
-rw-r--r-- | example/ndpiReader.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 }; |