From: Daniel Stenberg Date: Thu, 10 Aug 2017 12:54:55 +0000 (+0200) Subject: metalink: fix error: ‘*’ in boolean context, suggest ‘&&’ instead X-Git-Tag: curl-7_55_1~30 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a17e7721d247f41922e95f08e7e8e7a65ce06b06;p=curl metalink: fix error: ‘*’ in boolean context, suggest ‘&&’ instead --- diff --git a/src/tool_metalink.c b/src/tool_metalink.c index 7646a7fdf..3f66c7470 100644 --- a/src/tool_metalink.c +++ b/src/tool_metalink.c @@ -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;