aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2010-04-16 23:20:07 +0200
committerDaniel Stenberg <daniel@haxx.se>2010-04-16 23:20:07 +0200
commitb025ac16a6ea2d4c167a2bfe86f623c3ae2d9f4b (patch)
treefee580014087bd0353ecb795f70bffd2c7e40ce8
parent5d43c75c6696f991bc29dd6ee3bf35ca06101a69 (diff)
ftp_range: remove unnecessary check for NULL pointer
-rw-r--r--lib/ftp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ftp.c b/lib/ftp.c
index ee1fb066b..870befc86 100644
--- a/lib/ftp.c
+++ b/lib/ftp.c
@@ -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) {