Commit 5d43c75c authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

file_range: remove unnecessary check for NULL pointer

parent 15fa5dcf
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -146,7 +146,7 @@ static CURLcode file_range(struct connectdata *conn)

  if(data->state.use_range && data->state.range) {
    from=curlx_strtoofft(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) {