From: nalin Date: Mon, 20 Dec 1999 23:54:53 +0000 (+0000) Subject: Fixed bug 6390. X-Git-Tag: r0-50~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8b4dc5382afa6cd8b2053e13b326177158d45612;p=thirdparty%2Fnewt.git Fixed bug 6390. --- diff --git a/listbox.c b/listbox.c index ccdf76e..dc96665 100644 --- 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 {