summaryrefslogtreecommitdiff
path: root/src/tool_metalink.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/tool_metalink.c')
-rw-r--r--src/tool_metalink.c2
1 files changed, 1 insertions, 1 deletions
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;