mirror of
https://github.com/curl/curl.git
synced 2025-01-30 14:22:33 +08:00
sws: comparison of unsigned expression < 0 is always false
Follow-up to 356dd0b73a
Closes #10903
This commit is contained in:
parent
4838863d27
commit
3de6b6cfe5
@ -2069,9 +2069,9 @@ int main(int argc, char *argv[])
|
||||
char *endptr;
|
||||
unsigned long ulnum = strtoul(argv[arg], &endptr, 10);
|
||||
if((endptr != argv[arg] + strlen(argv[arg])) ||
|
||||
(ulnum && ((ulnum < 0UL) || (ulnum > 65535UL)))) {
|
||||
(ulnum && (ulnum > 65535UL))) {
|
||||
fprintf(stderr, "sws: invalid --keepalive argument (%s), must "
|
||||
"be number of seconds\n", argv[arg]);
|
||||
"be number of seconds\n", argv[arg]);
|
||||
return 0;
|
||||
}
|
||||
keepalive_secs = curlx_ultous(ulnum);
|
||||
|
Loading…
Reference in New Issue
Block a user