diff options
author | 2017-01-06 13:26:09 +0000 | |
---|---|---|
committer | 2017-01-06 13:26:09 +0000 | |
commit | 07a4101d3bc59add46debd94e095c61c0adf35c9 (patch) | |
tree | a94d5f1401dc54e88f6d4de1a38455c98bec2e01 /usr.bin/tmux/cmd-save-buffer.c | |
parent | Incremental search in copy mode (on for emacs keys by default) - much (diff) | |
download | wireguard-openbsd-07a4101d3bc59add46debd94e095c61c0adf35c9.tar.xz wireguard-openbsd-07a4101d3bc59add46debd94e095c61c0adf35c9.zip |
Nits found with clang.
Diffstat (limited to 'usr.bin/tmux/cmd-save-buffer.c')
-rw-r--r-- | usr.bin/tmux/cmd-save-buffer.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/tmux/cmd-save-buffer.c b/usr.bin/tmux/cmd-save-buffer.c index 13928c969c9..640e1a41a1f 100644 --- a/usr.bin/tmux/cmd-save-buffer.c +++ b/usr.bin/tmux/cmd-save-buffer.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cmd-save-buffer.c,v 1.40 2016/10/16 19:04:05 nicm Exp $ */ +/* $OpenBSD: cmd-save-buffer.c,v 1.41 2017/01/06 13:26:09 nicm Exp $ */ /* * Copyright (c) 2009 Tiago Cunha <me@tiagocunha.org> @@ -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 = "."; |