aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/main.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/main.c b/src/main.c
index 6d4820268..98bba1afc 100644
--- a/src/main.c
+++ b/src/main.c
@@ -1462,7 +1462,11 @@ static ParameterError getparameter(char *flag, /* f or -long-flag */
/* we can loop here if we have multiple single-letters */
if(!longopt) {
- letter = parse?(char)*parse:'\0';
+ if(NULL != parse) {
+ letter = (char)*parse;
+ else {
+ letter = '\0';
+ }
subletter='\0';
}
else {
@@ -3048,7 +3052,7 @@ int my_trace(CURL *handle, curl_infotype type,
break;
}
- newl = (size && (data[size-1] != '\n'));
+ newl = (bool)(size && (data[size-1] != '\n'));
return 0;
}