diff options
author | Daniel Stenberg <daniel@haxx.se> | 2014-10-06 08:49:43 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2014-10-06 08:49:43 +0200 |
commit | 4bc31df3e4cc5d3ae25e5f65f49d6b71d69a97c3 (patch) | |
tree | 3e39660c4b14b65c31a0df66cc98000beec4b032 | |
parent | 330346d51c1a11a7607349e364c417fccfc42ef5 (diff) |
ssh_statemach_act: split out assignment from check
just a minor code style thing to make the code clearer
-rw-r--r-- | lib/ssh.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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); |