They always point to a string. The string might be zero length.
Closes #19059
/* 331 Password required for ...
(the server requires to send the user's password too) */
result = Curl_pp_sendf(data, &ftpc->pp, "PASS %s",
- data->conn->passwd ? data->conn->passwd : "");
+ data->conn->passwd);
if(!result)
ftp_state(data, ftpc, FTP_PASS);
}
}
else
/* Send the PASS command */
- result = Curl_pp_sendf(data, &pop3c->pp, "PASS %s",
- conn->passwd ? conn->passwd : "");
+ result = Curl_pp_sendf(data, &pop3c->pp, "PASS %s", conn->passwd);
if(!result)
pop3_state(data, POP3_PASS);
function to make the reuse checks properly be able to check this bit. */
connkeep(conn, "SSH default");
- if(conn->user)
- infof(data, "User: '%s'", conn->user);
- else
- infof(data, "User: NULL");
+ infof(data, "User: '%s'", conn->user);
#ifdef CURL_LIBSSH2_DEBUG
- if(conn->passwd) {
- infof(data, "Password: %s", conn->passwd);
- }
+ infof(data, "Password: %s", conn->passwd);
sock = conn->sock[FIRSTSOCKET];
#endif /* CURL_LIBSSH2_DEBUG */