Removed some redundant type casts

This commit is contained in:
Dan Fandrich
2008-09-02 18:36:39 +00:00
parent 934708d950
commit 0994d7811f
4 changed files with 5 additions and 5 deletions

View File

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