diff options
author | Michele Campus <fci1908@gmail.com> | 2016-11-22 22:18:11 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-11-22 22:18:11 +0100 |
commit | 4da4db1e73ceca5f519e37c9e701e9d3f0919285 (patch) | |
tree | 129e52dd8a79da79b30723b767d0e7262013dc97 | |
parent | f670eefd849f8805f201939215e358b47ebd0ff7 (diff) | |
parent | 4c23c3fec9ff02255d9f946256d57bb790a8fc58 (diff) |
Merge pull request #303 from alagoutte/fix_warning
Fix warning
-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++; |