diff options
author | Tobias Klauser <tklauser@distanz.ch> | 2014-08-15 11:53:14 +0200 |
---|---|---|
committer | Tobias Klauser <tklauser@distanz.ch> | 2014-08-15 11:53:14 +0200 |
commit | cd3bc1457bcb4f22c232a5808fb895c2798ca164 (patch) | |
tree | 72d2d1e83d51c7a7e3cc1a02fc7fd78b5b381567 | |
parent | 0546b9ddc031d596dd0f94d084957b0d4f52754a (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.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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) |