ftp: remove redundant null pointer check in loop condition

Closes #14234
This commit is contained in:
martinevsky 2024-07-19 16:46:25 +03:00 committed by Daniel Stenberg
parent 92e28f2897
commit 8e13837e0e
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

View File

@ -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