From 8e13837e0e55ef8d61c8bf33b4b56743d6cd3cc4 Mon Sep 17 00:00:00 2001 From: martinevsky Date: Fri, 19 Jul 2024 16:46:25 +0300 Subject: [PATCH] ftp: remove redundant null pointer check in loop condition Closes #14234 --- lib/ftp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.47.3