summaryrefslogtreecommitdiffstats
path: root/gnu/lib/libdialog/menubox.c
diff options
context:
space:
mode:
Diffstat (limited to 'gnu/lib/libdialog/menubox.c')
-rw-r--r--gnu/lib/libdialog/menubox.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gnu/lib/libdialog/menubox.c b/gnu/lib/libdialog/menubox.c
index cc58211..ef945af 100644
--- a/gnu/lib/libdialog/menubox.c
+++ b/gnu/lib/libdialog/menubox.c
@@ -203,7 +203,7 @@ draw:
}
delwin(save);
}
- else
+ else if (result)
strcpy(result, items[(scroll + choice) * 2]);
delwin(menu);
delwin(dialog);
OpenPOWER on IntegriCloud