summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2014-08-15 11:53:14 +0200
committerTobias Klauser <tklauser@distanz.ch>2014-08-15 11:53:14 +0200
commitcd3bc1457bcb4f22c232a5808fb895c2798ca164 (patch)
tree72d2d1e83d51c7a7e3cc1a02fc7fd78b5b381567
parent0546b9ddc031d596dd0f94d084957b0d4f52754a (diff)
geoip: Use NULL instead of integer to initialize pointers
Fixes the following sparse warnings: geoip.c:76:30: warning: Using plain integer as NULL pointer geoip.c:78:30: warning: Using plain integer as NULL pointer Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
-rw-r--r--geoip.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/geoip.c b/geoip.c
index b1ddeeb..0d5a4ed 100644
--- a/geoip.c
+++ b/geoip.c
@@ -73,9 +73,9 @@ static GeoIP *gi4_asname = NULL, *gi6_asname = NULL;
static GeoIP *gi4_country = NULL, *gi6_country = NULL;
static GeoIP *gi4_city = NULL, *gi6_city = NULL;
-static GeoIPRecord empty = { 0 };
+static GeoIPRecord empty = { NULL };
-static char *servers[16] = { 0 };
+static char *servers[16] = { NULL };
#define CITYV4 (1 << 0)
#define CITYV6 (1 << 1)