ndiReader: fix ‘jObj_main/jArray_detProto’ may be used uninitialized in this function [-Werror=maybe-uninitialized]
This commit is contained in:
@@ -766,7 +766,7 @@ static void printResults(u_int64_t tot_usec) {
|
|||||||
char buf[32];
|
char buf[32];
|
||||||
#ifdef HAVE_JSON_C
|
#ifdef HAVE_JSON_C
|
||||||
FILE *json_fp = NULL;
|
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
|
#endif
|
||||||
long long unsigned int breed_stats[NUM_BREEDS] = { 0 };
|
long long unsigned int breed_stats[NUM_BREEDS] = { 0 };
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user