sftp range: remove unnecessary check for NULL pointer
authorDaniel Stenberg <daniel@haxx.se>
Fri, 16 Apr 2010 21:20:50 +0000 (23:20 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Fri, 16 Apr 2010 21:20:50 +0000 (23:20 +0200)
lib/ssh.c

index ff5994b..b3da655 100644 (file)
--- 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 */