Skip to content
Snippets Groups Projects
Commit 4bc31df3 authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

ssh_statemach_act: split out assignment from check

just a minor code style thing to make the code clearer
parent 330346d5
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment