Nits found with clang.

This commit is contained in:
nicm
2017-01-06 13:26:09 +00:00
parent 461217d0f0
commit cae0fbbe8c
4 changed files with 3 additions and 5 deletions

View File

@ -100,7 +100,7 @@ cmd_save_buffer_exec(struct cmd *self, struct cmdq_item *item)
if (c != NULL && c->session == NULL && c->cwd != NULL)
cwd = c->cwd;
else if ((s = c->session) != NULL && s->cwd != NULL)
else if (c != NULL && (s = c->session) != NULL && s->cwd != NULL)
cwd = s->cwd;
else
cwd = ".";