From: divverent Date: Sun, 7 Dec 2014 16:39:43 +0000 (+0000) Subject: curl: do not output requirements for files that are local. X-Git-Tag: xonotic-v0.8.1~29^2~55 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=85c434c08985337fa476e56fae0fde3e955dbd73;p=xonotic%2Fdarkplaces.git curl: do not output requirements for files that are local. Fixes a bug introduced by r12079. git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12105 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/libcurl.c b/libcurl.c index 43051547..b228350e 100644 --- a/libcurl.c +++ b/libcurl.c @@ -1776,7 +1776,7 @@ static qboolean Curl_SendRequirement(const char *filename, qboolean foundone, ch const char *thispack = FS_WhichPack(filename); const char *packurl; - if(!thispack) + if(!thispack || !*thispack) return false; p = strrchr(thispack, '/');