diff --git a/dlls/geoip/geoip_util.cpp b/dlls/geoip/geoip_util.cpp index 16d95cf3..a805ae62 100644 --- a/dlls/geoip/geoip_util.cpp +++ b/dlls/geoip/geoip_util.cpp @@ -166,6 +166,9 @@ const char *lookupString(const char *ip, const char **path, int *length) if (!lookupByIp(ip, path, &result)) { + if (length) + *length = 0; + return NULL; }