From d80e003f971660c07399a77168634717f5623f65 Mon Sep 17 00:00:00 2001 From: Chris Tallon Date: Fri, 29 Dec 2006 17:42:35 +0000 Subject: [PATCH] Fix segfault when pressing ok with no entries --- wselectlist.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/wselectlist.cc b/wselectlist.cc index c01eff7..796042f 100644 --- a/wselectlist.cc +++ b/wselectlist.cc @@ -217,6 +217,7 @@ int WSelectList::getCurrentOption() ULONG WSelectList::getCurrentOptionData() { + if (!options.size()) return 0; return options[selectedOption].data; } -- 2.39.5