From 07a4101d3bc59add46debd94e095c61c0adf35c9 Mon Sep 17 00:00:00 2001 From: nicm Date: Fri, 6 Jan 2017 13:26:09 +0000 Subject: Nits found with clang. --- usr.bin/tmux/cmd-load-buffer.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'usr.bin/tmux/cmd-load-buffer.c') diff --git a/usr.bin/tmux/cmd-load-buffer.c b/usr.bin/tmux/cmd-load-buffer.c index a7ea1cc2531..639bfaa7248 100644 --- a/usr.bin/tmux/cmd-load-buffer.c +++ b/usr.bin/tmux/cmd-load-buffer.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cmd-load-buffer.c,v 1.47 2016/10/26 11:48:07 nicm Exp $ */ +/* $OpenBSD: cmd-load-buffer.c,v 1.48 2017/01/06 13:26:09 nicm Exp $ */ /* * Copyright (c) 2009 Tiago Cunha @@ -89,7 +89,7 @@ cmd_load_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 = "."; -- cgit v1.2.3-59-g8ed1b