]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
don't print "empty file" spam here
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Fri, 10 Apr 2009 20:16:39 +0000 (20:16 +0000)
committerdivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Fri, 10 Apr 2009 20:16:39 +0000 (20:16 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8898 d7cf8633-e32d-0410-b094-e92efae38249

libcurl.c

index 4eac714a69a677d293a470b24a7ba8549a752cfb..f7947b370a09ec2e42169ebe9f21f5dbb2f49978 100644 (file)
--- a/libcurl.c
+++ b/libcurl.c
@@ -482,7 +482,7 @@ static void Curl_EndDownload(downloadinfo *di, CurlStatus status, CURLcode error
                qcurl_easy_cleanup(di->curle);
        }
 
-       if(ok && !di->bytes_received)
+       if(!di->callback && ok && !di->bytes_received)
        {
                Con_Printf("ERROR: empty file\n");
                ok = false;