From 2ab1faf05a9256262548a06a702de7b513506e65 Mon Sep 17 00:00:00 2001 From: Alexis La Goutte Date: Tue, 22 Nov 2016 20:47:07 +0100 Subject: http: unused variable 'no_pps' [-Werror=unused-variable] --- src/lib/protocols/http.c | 1 - 1 file changed, 1 deletion(-) 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++; -- cgit v1.2.3 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(-) 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