From 8ae458254aa7426e2740f03e1cca451ff60843c0 Mon Sep 17 00:00:00 2001 From: Kaian Date: Sat, 20 Feb 2016 19:49:07 +0100 Subject: [PATCH] dialog: fix action initialization --- src/curses/ui_manager.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/curses/ui_manager.c b/src/curses/ui_manager.c index 6d564f2..4d7f2a0 100644 --- a/src/curses/ui_manager.c +++ b/src/curses/ui_manager.c @@ -615,13 +615,14 @@ int dialog_confirm(const char *title, const char *text, const char *options) { WINDOW *dialog_win; - int key, action, i, curs, newl, height, width; + int key, i, curs, newl, height, width; char *str, *tofree, *option, *word; int selected = 0; int optioncnt = 1; int col = 2; int line = 3; char opts[4][10]; + int action = -1; // Initialize memset(opts, 0, 4 * 10);