aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2010-04-16 23:20:50 +0200
committerDaniel Stenberg <daniel@haxx.se>2010-04-16 23:20:50 +0200
commit9799dbebd6ab174a01fef2ff62d8806b1ea8bbd5 (patch)
treedafb5f349ab7f0ee944418063709a320101eb024
parentb025ac16a6ea2d4c167a2bfe86f623c3ae2d9f4b (diff)
sftp range: remove unnecessary check for NULL pointer
-rw-r--r--lib/ssh.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ssh.c b/lib/ssh.c
index ff5994b44..b3da65562 100644
--- a/lib/ssh.c
+++ b/lib/ssh.c
@@ -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 */