Skip to content
Snippets Groups Projects
Commit 5d43c75c authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

file_range: remove unnecessary check for NULL pointer

parent 15fa5dcf
Branches
Tags
No related merge requests found
......@@ -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) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment