mirror of
https://github.com/moparisthebest/curl
synced 2024-12-21 23:58:49 -05:00
sftp range: remove unnecessary check for NULL pointer
This commit is contained in:
parent
b025ac16a6
commit
9799dbebd6
@ -1910,7 +1910,7 @@ static CURLcode ssh_statemach_act(struct connectdata *conn, bool *block)
|
||||
char *ptr2;
|
||||
|
||||
from=curlx_strtoofft(conn->data->state.range, &ptr, 0);
|
||||
while(ptr && *ptr && (isspace((int)*ptr) || (*ptr=='-')))
|
||||
while(*ptr && (isspace((int)*ptr) || (*ptr=='-')))
|
||||
ptr++;
|
||||
to=curlx_strtoofft(ptr, &ptr2, 0);
|
||||
if((ptr == ptr2) /* no "to" value given */
|
||||
|
Loading…
Reference in New Issue
Block a user