summaryrefslogtreecommitdiff
path: root/usr.bin/tmux/menu.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@cvs.openbsd.org>2020-09-16 18:37:56 +0000
committerNicholas Marriott <nicm@cvs.openbsd.org>2020-09-16 18:37:56 +0000
commit4f63105a8cc79d5502081e3bc45c140cfe5a37f5 (patch)
treefb00b4c4ad8129b7c6496649b4917a35d26d1739 /usr.bin/tmux/menu.c
parent9124c47097f34475240175f8ab1bbfc8e8da589c (diff)
Fix some warnings, GitHub issue 2382.
Diffstat (limited to 'usr.bin/tmux/menu.c')
-rw-r--r--usr.bin/tmux/menu.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/tmux/menu.c b/usr.bin/tmux/menu.c
index f2ec947d0c0..d6b7cb4e038 100644
--- a/usr.bin/tmux/menu.c
+++ b/usr.bin/tmux/menu.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: menu.c,v 1.30 2020/05/25 11:59:50 nicm Exp $ */
+/* $OpenBSD: menu.c,v 1.31 2020/09/16 18:37:55 nicm Exp $ */
/*
* Copyright (c) 2019 Nicholas Marriott <nicholas.marriott@gmail.com>
@@ -187,7 +187,7 @@ menu_key_cb(struct client *c, struct key_event *event)
struct mouse_event *m = &event->m;
u_int i;
int count = menu->count, old = md->choice;
- const char *name;
+ const char *name = NULL;
const struct menu_item *item;
struct cmdq_state *state;
enum cmd_parse_status status;