mirror of
https://github.com/curl/curl.git
synced 2026-04-15 00:21:42 +03:00
libtest: fix int-in-bool-context warnings
GCC 7 complained: ‘*’ in boolean context, suggest ‘&&’ instead [-Wint-in-bool-context]
This commit is contained in:
parent
0932573e7c
commit
a1b275a41e
2 changed files with 2 additions and 2 deletions
|
|
@ -56,7 +56,7 @@ static size_t rtp_write(void *ptr, size_t size, size_t nmemb, void *stream)
|
|||
int channel = RTP_PKT_CHANNEL(data);
|
||||
int message_size;
|
||||
int coded_size = RTP_PKT_LENGTH(data);
|
||||
size_t failure = (size * nmemb) ? 0 : 1;
|
||||
size_t failure = (size && nmemb) ? 0 : 1;
|
||||
int i;
|
||||
(void)stream;
|
||||
|
||||
|
|
|
|||
|
|
@ -44,7 +44,7 @@ static size_t callback(char *ptr, size_t size, size_t nmemb, void *data)
|
|||
long longdata;
|
||||
CURLcode code;
|
||||
|
||||
const size_t failure = (size * nmemb) ? 0 : 1;
|
||||
const size_t failure = (size && nmemb) ? 0 : 1;
|
||||
|
||||
char *output = malloc(size * nmemb + 1);
|
||||
if(!output) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue