Merge pull request #303 from alagoutte/fix_warning

Fix warning
This commit is contained in:
Michele Campus
2016-11-22 22:18:11 +01:00
committed by GitHub
2 changed files with 1 additions and 2 deletions
+1 -1
View File
@@ -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 };
-1
View File
@@ -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++;