dialog: fix action initialization

This commit is contained in:
Kaian 2016-02-20 19:49:07 +01:00
parent b795b67334
commit 8ae458254a
1 changed files with 2 additions and 1 deletions

View File

@ -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);