]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
file_range: remove unnecessary check for NULL pointer
authorDaniel Stenberg <daniel@haxx.se>
Fri, 16 Apr 2010 21:18:43 +0000 (23:18 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Fri, 16 Apr 2010 21:18:43 +0000 (23:18 +0200)
lib/file.c

index f96f8f51a7ccc6d7702c6cc2a36547a996ba0189..91176aa1168d998f23d9a601fb5c054ae8ab3875 100644 (file)
@@ -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) {