if(len < 4 || !ISDIGIT(line[0]) || !ISDIGIT(line[1]) || !ISDIGIT(line[2]))
return FALSE; /* Nothing for us. */
- if((result = line[3] == ' '))
+ if((result = (line[3] == ' ')) != 0)
*resp = curlx_sltosi(strtol(line, NULL, 10));
line += 4;
if(++l) {
chlg64[l] = '\0';
- if(!(chlglen = Curl_base64_decode(chlg64, &chlg)))
+ chlglen = Curl_base64_decode(chlg64, &chlg);
+ if(!chlglen)
return CURLE_OUT_OF_MEMORY;
}
}
char *sep2;
if((1 == sscanf(input, "%255[^=]=", name)) &&
- (contp = strchr(input, '='))) {
+ ((contp = strchr(input, '=')) != NULL)) {
/* the input was using the correct format */
/* Allocate the contents */
default: /* the URL! */
{
struct getout *url;
- if(config->url_get || (config->url_get=config->url_list)) {
+ if(config->url_get || ((config->url_get = config->url_list) != NULL)) {
/* there's a node here, if it already is filled-in continue to find
an "empty" node */
while(config->url_get && (config->url_get->flags&GETOUT_URL))
/* output file */
{
struct getout *url;
- if(config->url_out || (config->url_out=config->url_list)) {
+ if(config->url_out || ((config->url_out = config->url_list) != NULL)) {
/* there's a node here, if it already is filled-in continue to find
an "empty" node */
while(config->url_out && (config->url_out->flags&GETOUT_OUTFILE))
/* we are uploading */
{
struct getout *url;
- if(config->url_out || (config->url_out=config->url_list)) {
+ if(config->url_out || ((config->url_out = config->url_list) != NULL)) {
/* there's a node here, if it already is filled-in continue to find
an "empty" node */
while(config->url_out && (config->url_out->flags&GETOUT_UPLOAD))
int i;
const char *c;
- for(i=0; (c = srchead[i]); i++)
+ for(i=0; ((c = srchead[i]) != '\0'); i++)
fprintf(out, "%s\n", c);
ptr = easycode;
single globbed string. If no upload, we enter the loop once anyway. */
for(up = 0;
(!up && !infiles) ||
- (uploadfile = inglob?
+ ((uploadfile = inglob?
glob_next_url(inglob):
- (!up?strdup(infiles):NULL));
+ (!up?strdup(infiles):NULL)) != NULL);
up++) {
int separator = 0;
long retry_numretries;
/* Here's looping around each globbed URL */
for(i = 0;
- (url = urls?glob_next_url(urls):(i?NULL:strdup(url)));
+ ((url = urls?glob_next_url(urls):(i?NULL:strdup(url))) != NULL);
i++) {
/* NOTE: In the condition expression in the for() statement above, the
'url' variable is only ever strdup()ed if(i == 0) and thus never