1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-21 23:58:49 -05:00

metalink: fix error: ‘*’ in boolean context, suggest ‘&&’ instead

This commit is contained in:
Daniel Stenberg 2017-08-10 14:54:55 +02:00
parent 050e3532f4
commit a17e7721d2
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

View File

@ -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;