mirror of
https://github.com/curl/curl.git
synced 2026-08-26 07:43:33 +03:00
Removed some redundant type casts
This commit is contained in:
parent
934708d950
commit
0994d7811f
4 changed files with 5 additions and 5 deletions
|
|
@ -765,7 +765,7 @@ static CURLcode ssh_statemach_act(struct connectdata *conn)
|
|||
else if(rc > 0) {
|
||||
/* It seems that this string is not always NULL terminated */
|
||||
tempHome[rc] = '\0';
|
||||
sshc->homedir = (char *)strdup(tempHome);
|
||||
sshc->homedir = strdup(tempHome);
|
||||
if(!sshc->homedir) {
|
||||
state(conn, SSH_SFTP_CLOSE);
|
||||
sshc->actualcode = CURLE_OUT_OF_MEMORY;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue