From: Daniel Stenberg Date: Fri, 16 Apr 2010 21:18:43 +0000 (+0200) Subject: file_range: remove unnecessary check for NULL pointer X-Git-Tag: curl-7_21_0~144^2~11 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=5d43c75c6696f991bc29dd6ee3bf35ca06101a69;p=thirdparty%2Fcurl.git file_range: remove unnecessary check for NULL pointer --- diff --git a/lib/file.c b/lib/file.c index f96f8f51a7..91176aa116 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) {