From a17e7721d247f41922e95f08e7e8e7a65ce06b06 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Thu, 10 Aug 2017 14:54:55 +0200 Subject: [PATCH] =?utf8?q?metalink:=20fix=20error:=20=E2=80=98*=E2=80=99?= =?utf8?q?=20in=20boolean=20context,=20suggest=20=E2=80=98&&=E2=80=99=20in?= =?utf8?q?stead?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- src/tool_metalink.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.40.0