diff --git a/lib/netplay/miniupnpc/miniwget.c b/lib/netplay/miniupnpc/miniwget.c index 51a371ad5..cc053abb1 100644 --- a/lib/netplay/miniupnpc/miniwget.c +++ b/lib/netplay/miniupnpc/miniwget.c @@ -234,6 +234,9 @@ miniwget2(const char * url, const char * host, int parseURL(const char * url, char * hostname, unsigned short * port, char * * path) { char * p1, *p2, *p3; + + if (!url) + return 0; p1 = strstr(url, "://"); if(!p1) return 0;