19 lines
599 B
Diff
19 lines
599 B
Diff
Index: newt/whiptail.c
|
|
===================================================================
|
|
RCS file: /usr/local/CVS/newt/whiptail.c,v
|
|
retrieving revision 1.21
|
|
retrieving revision 1.22
|
|
diff -u -r1.21 -r1.22
|
|
--- newt/whiptail.c 31 Jan 2007 13:48:15 -0000 1.21
|
|
+++ newt/whiptail.c 25 Jun 2007 10:37:18 -0000 1.22
|
|
@@ -569,7 +569,8 @@
|
|
case MODE_RADIOLIST:
|
|
rc = checkList(text, height, width, optCon, 1, flags, &selections);
|
|
if (rc == DLG_OKAY) {
|
|
- fprintf(output, "%s", selections[0]);
|
|
+ if (selections[0])
|
|
+ fprintf(output, "%s", selections[0]);
|
|
free(selections);
|
|
}
|
|
break;
|