summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJordan K. Hubbard <jkh@FreeBSD.org>1996-04-28 02:13:07 +0000
committerJordan K. Hubbard <jkh@FreeBSD.org>1996-04-28 02:13:07 +0000
commitd1efb9fdc213f66daf873d2e60829245e505e209 (patch)
tree3af216f2a509d8fc560a59f3fd8891a7ac065b7b
parent3174386dd61542b8d5e77712f928c5bd70b591db (diff)
Notes
-rw-r--r--gnu/lib/libdialog/checklist.c2
-rw-r--r--gnu/lib/libdialog/menubox.c2
-rw-r--r--gnu/lib/libdialog/radiolist.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/gnu/lib/libdialog/checklist.c b/gnu/lib/libdialog/checklist.c
index 0e8e419e2fa1..bc6bcba21e0b 100644
--- a/gnu/lib/libdialog/checklist.c
+++ b/gnu/lib/libdialog/checklist.c
@@ -214,7 +214,7 @@ draw:
}
delwin(save);
}
- else {
+ else if (result) {
*result = '\0';
for (i = 0; i < item_no; i++) {
if (status[i]) {
diff --git a/gnu/lib/libdialog/menubox.c b/gnu/lib/libdialog/menubox.c
index cc582110fbdc..ef945af0ae6c 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);
diff --git a/gnu/lib/libdialog/radiolist.c b/gnu/lib/libdialog/radiolist.c
index d368944790c0..88fee25fd1cf 100644
--- a/gnu/lib/libdialog/radiolist.c
+++ b/gnu/lib/libdialog/radiolist.c
@@ -222,7 +222,7 @@ draw:
}
delwin(save);
}
- else {
+ else if (result) {
*result = '\0';
for (i = 0; i < item_no; i++) {
if (status[i]) {