ftp_range: remove unnecessary check for NULL pointer

This commit is contained in:
Daniel Stenberg 2010-04-16 23:20:07 +02:00
parent 5d43c75c66
commit b025ac16a6
1 changed files with 1 additions and 1 deletions

View File

@ -3293,7 +3293,7 @@ static CURLcode ftp_range(struct connectdata *conn)
if(data->state.use_range && data->state.range) {
from=curlx_strtoofft(data->state.range, &ptr, 0);
while(ptr && *ptr && (ISSPACE(*ptr) || (*ptr=='-')))
while(*ptr && (ISSPACE(*ptr) || (*ptr=='-')))
ptr++;
to=curlx_strtoofft(ptr, &ptr2, 0);
if(ptr == ptr2) {