From: Daniel Stenberg Date: Fri, 16 Apr 2010 21:20:07 +0000 (+0200) Subject: ftp_range: remove unnecessary check for NULL pointer X-Git-Tag: curl-7_21_0~144^2~10 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b025ac16a6ea2d4c167a2bfe86f623c3ae2d9f4b;p=thirdparty%2Fcurl.git ftp_range: remove unnecessary check for NULL pointer --- diff --git a/lib/ftp.c b/lib/ftp.c index ee1fb066b7..870befc860 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) {