aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2010-04-16 23:18:43 +0200
committerDaniel Stenberg <daniel@haxx.se>2010-04-16 23:18:43 +0200
commit5d43c75c6696f991bc29dd6ee3bf35ca06101a69 (patch)
tree92d4365d9b8154789d254fe68cbcb40c7330e7bf /lib
parent15fa5dcfe6ad34f8f9d360163c44caf05c771210 (diff)
file_range: remove unnecessary check for NULL pointer
Diffstat (limited to 'lib')
-rw-r--r--lib/file.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/file.c b/lib/file.c
index f96f8f51a..91176aa11 100644
--- a/lib/file.c
+++ b/lib/file.c
@@ -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) {