1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-22 16:18:48 -05:00

file_range: remove unnecessary check for NULL pointer

This commit is contained in:
Daniel Stenberg 2010-04-16 23:18:43 +02:00
parent 15fa5dcfe6
commit 5d43c75c66

View File

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