From: Daniel Stenberg Date: Fri, 16 Apr 2010 21:20:50 +0000 (+0200) Subject: sftp range: remove unnecessary check for NULL pointer X-Git-Tag: curl-7_21_0~144^2~9 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9799dbebd6ab174a01fef2ff62d8806b1ea8bbd5;p=thirdparty%2Fcurl.git sftp range: remove unnecessary check for NULL pointer --- diff --git a/lib/ssh.c b/lib/ssh.c index ff5994b441..b3da655624 100644 --- a/lib/ssh.c +++ b/lib/ssh.c @@ -1910,7 +1910,7 @@ static CURLcode ssh_statemach_act(struct connectdata *conn, bool *block) char *ptr2; from=curlx_strtoofft(conn->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) /* no "to" value given */