1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-21 15:48:49 -05:00

ssh_statemach_act: split out assignment from check

just a minor code style thing to make the code clearer
This commit is contained in:
Daniel Stenberg 2014-10-06 08:49:43 +02:00
parent 330346d51c
commit 4bc31df3e4

View File

@ -1793,7 +1793,8 @@ static CURLcode ssh_statemach_act(struct connectdata *conn, bool *block)
break;
case SSH_SFTP_CREATE_DIRS:
if((sshc->slash_pos = strchr(sshc->slash_pos, '/')) != NULL) {
sshc->slash_pos = strchr(sshc->slash_pos, '/');
if(sshc->slash_pos) {
*sshc->slash_pos = 0;
infof(data, "Creating directory '%s'\n", sftp_scp->path);