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.0~29 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=648e5aa2f9faf64359a7ba2a6f5ab6edf0373c7f;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 ::stable-branch::merge=85c434c08985337fa476e56fae0fde3e955dbd73 --- 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, '/');