Commit 9799dbeb authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

sftp range: remove unnecessary check for NULL pointer

parent b025ac16
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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 */