diff options
author | Daniel Stenberg <daniel@haxx.se> | 2017-08-10 14:54:55 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2017-08-10 14:54:55 +0200 |
commit | a17e7721d247f41922e95f08e7e8e7a65ce06b06 (patch) | |
tree | 2c9587323088d8387a75e9868a9d09071876978a /src | |
parent | 050e3532f42e3307b82c8630d6f7d211a1897352 (diff) |
metalink: fix error: ‘*’ in boolean context, suggest ‘&&’ instead
Diffstat (limited to 'src')
-rw-r--r-- | src/tool_metalink.c | 2 |
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; |