diff options
author | Alexis La Goutte <alexis.lagoutte@gmail.com> | 2017-03-30 14:14:53 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2017-03-30 14:29:08 +0200 |
commit | 244e0a36bd01ebbbdbf009ca2be6b78f29740277 (patch) | |
tree | 8134a86b2c1a611ccf8be369eb19d736a3832699 /src/tool_cb_wrt.c | |
parent | f104f7d914e1d802bdedcfcae6116eeab4a4a43e (diff) | |
download | curl-244e0a36bd01ebbbdbf009ca2be6b78f29740277.tar.gz |
gcc7: fix ‘*’ in boolean context, suggest ‘&&’ instead [-Wint-in-bool-context]
Closes #1371
Diffstat (limited to 'src/tool_cb_wrt.c')
-rw-r--r-- | src/tool_cb_wrt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tool_cb_wrt.c b/src/tool_cb_wrt.c index 5c28a2cf8..6c08943ea 100644 --- a/src/tool_cb_wrt.c +++ b/src/tool_cb_wrt.c @@ -84,7 +84,7 @@ size_t tool_write_cb(char *buffer, size_t sz, size_t nmemb, void *userdata) * 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; |