summaryrefslogtreecommitdiff
path: root/net-analyzer/ntopng/files/ntopng-3.0-pointer-cmp.patch
blob: 171bee36e897207f88b4afdbb419f49b55a6737d (plain)
1
2
3
4
5
6
7
8
9
10
11
--- a/src/AddressResolution.cpp
+++ b/src/AddressResolution.cpp
@@ -52,7 +52,7 @@
   u_int numeric_ip_len;
 
   snprintf(query, sizeof(query), "%s", _numeric_ip);
-  if((at = strchr(query, '@')) != '\0') at[0] = '\0';
+  if((at = strchr(query, '@')) != NULL) at[0] = '\0';
   numeric_ip = query;
   numeric_ip_len = strlen(numeric_ip)-1;