Git-Url: http://git.frugalware.org/gitweb/gitweb.cgi?p=pacman-g2.git;a=commitdiff;h=f2b22511e0330c90473d082993ebf1452b13e94d
commit f2b22511e0330c90473d082993ebf1452b13e94d Author: Michel Hermier <[email protected]> Date: Wed Dec 25 11:00:49 2013 +0100 libpacman: Test equality to 0 instead of using ! in if. diff --git a/lib/libpacman/server.c b/lib/libpacman/server.c index 1c015c9..f13a942 100644 --- a/lib/libpacman/server.c +++ b/lib/libpacman/server.c @@ -265,7 +265,7 @@ pmdownloadsuccess_t _pacman_curl_download(pmcurldownloader_t *curldownloader, co curl_easy_setopt(curlHandle, CURLOPT_FILETIME, 0); curl_easy_setopt(curlHandle, CURLOPT_TIMECONDITION, CURL_TIMECOND_NONE); - if(dlFileType != PM_FILE_DB && !stat(output, &st)) { + if(dlFileType != PM_FILE_DB && stat(output, &st) == 0) { curldownloader->download.dst_resume = st.st_size; curl_easy_setopt(curlHandle, CURLOPT_RESUME_FROM, curldownloader->download.dst_resume); outputFile = fopen(output,"ab"); _______________________________________________ Frugalware-git mailing list [email protected] http://frugalware.org/mailman/listinfo/frugalware-git
