Loading src/tool_metalink.c +1 −1 Original line number Diff line number Diff line Loading @@ -875,7 +875,7 @@ size_t metalink_write_cb(void *buffer, size_t sz, size_t nmemb, * it does not match then it fails with CURLE_WRITE_ERROR. So at this * point returning a value different from sz*nmemb indicates failure. */ const size_t failure = (sz * nmemb) ? 0 : 1; const size_t failure = (sz && nmemb) ? 0 : 1; if(!config) return failure; Loading Loading
src/tool_metalink.c +1 −1 Original line number Diff line number Diff line Loading @@ -875,7 +875,7 @@ size_t metalink_write_cb(void *buffer, size_t sz, size_t nmemb, * it does not match then it fails with CURLE_WRITE_ERROR. So at this * point returning a value different from sz*nmemb indicates failure. */ const size_t failure = (sz * nmemb) ? 0 : 1; const size_t failure = (sz && nmemb) ? 0 : 1; if(!config) return failure; Loading