]> git.ipfire.org Git - thirdparty/newt.git/commitdiff
Fixed bug 6390.
authornalin <nalin>
Mon, 20 Dec 1999 23:54:53 +0000 (23:54 +0000)
committernalin <nalin>
Mon, 20 Dec 1999 23:54:53 +0000 (23:54 +0000)
listbox.c

index ccdf76e9ae4c1d880b00b2f12752bb4401e2f9a3..dc966659b0396ecf5b1a83ec35e9a62a599b1c9f 100644 (file)
--- a/listbox.c
+++ b/listbox.c
@@ -633,7 +633,7 @@ static struct eventResult listboxEvent(newtComponent co, struct event ev) {
                  for(i = 0, item = li->boxItems; item != NULL &&
                          i < li->currItem; i++, item = item->next);
 
-                 if (item->text && (toupper(*item->text) == toupper(ev.u.key))) {
+                 if (item && item->text && (toupper(*item->text) == toupper(ev.u.key))) {
                      item = item->next;
                      i++;
                  } else {