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