diff options
-rw-r--r-- | example/ndpiReader.c | 2 | ||||
-rw-r--r-- | src/lib/protocols/http.c | 1 |
2 files changed, 1 insertions, 2 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 }; diff --git a/src/lib/protocols/http.c b/src/lib/protocols/http.c index 72ab9f9dc..c93e525bf 100644 --- a/src/lib/protocols/http.c +++ b/src/lib/protocols/http.c @@ -816,7 +816,6 @@ static void ndpi_check_http_tcp(struct ndpi_detection_module_struct *ndpi_struct /* check PPStream protocol or iQiyi service (iqiyi is deliverd by ppstream) */ // substring in url - int no_pps = 0; if(strstr((const char*) &packet->payload[filename_start], "iqiyi.com") != NULL) { if(kxun_counter == 0) { flow->l4.tcp.ppstream_stage++; |