]> asedeno.scripts.mit.edu Git - PuTTY.git/blobdiff - dialog.c
Patch from Rene Post: ctrl_{drag,drop}list both now initialise the
[PuTTY.git] / dialog.c
index 94572dbceea049761e14d5683696f51a33084c69..53b642980a8d640fe13613d1b17e6d6a54d46194 100644 (file)
--- a/dialog.c
+++ b/dialog.c
@@ -362,6 +362,8 @@ union control *ctrl_droplist(struct controlset *s, char *label, char shortcut,
     c->listbox.draglist = 0;
     c->listbox.multisel = 0;
     c->listbox.percentwidth = percentage;
+    c->listbox.ncols = 0;
+    c->listbox.percentages = NULL;
     return c;
 }
 
@@ -376,6 +378,8 @@ union control *ctrl_draglist(struct controlset *s,char *label,char shortcut,
     c->listbox.draglist = 1;
     c->listbox.multisel = 0;
     c->listbox.percentwidth = 100;
+    c->listbox.ncols = 0;
+    c->listbox.percentages = NULL;
     return c;
 }