]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
curl: do not output requirements for files that are local.
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 7 Dec 2014 16:39:43 +0000 (16:39 +0000)
committerRudolf Polzer <divverent@xonotic.org>
Sun, 7 Dec 2014 16:41:51 +0000 (17:41 +0100)
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

libcurl.c

index 43051547159b8c674c89fc6b089c802960b861b9..b228350edfd385f7501ec4d174aed741f5f91773 100644 (file)
--- 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, '/');