From: martinevsky Date: Fri, 19 Jul 2024 13:46:25 +0000 (+0300) Subject: ftp: remove redundant null pointer check in loop condition X-Git-Tag: curl-8_9_0~11 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=8e13837e0e55ef8d61c8bf33b4b56743d6cd3cc4;p=thirdparty%2Fcurl.git ftp: remove redundant null pointer check in loop condition Closes #14234 --- diff --git a/lib/ftp.c b/lib/ftp.c index f048a63f39..ae340c44af 100644 --- a/lib/ftp.c +++ b/lib/ftp.c @@ -1354,7 +1354,7 @@ static CURLcode ftp_state_use_port(struct Curl_easy *data, char *dest = target; /* translate x.x.x.x to x,x,x,x */ - while(source && *source) { + while(*source) { if(*source == '.') *dest = ','; else