From d2014d293b757c2fd11e3757d81b093aa034843f Mon Sep 17 00:00:00 2001 From: rswindell <> Date: Sat, 22 Oct 2005 01:55:00 +0000 Subject: [PATCH] Don't puke in ulist() if options arg is NULL. --- src/uifc/uifc32.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/uifc/uifc32.c b/src/uifc/uifc32.c index 90a1184e69..af66fe1526 100644 --- a/src/uifc/uifc32.c +++ b/src/uifc/uifc32.c @@ -535,7 +535,7 @@ int ulist(int mode, int left, int top, int width, int *cur, int *bar if(mode&WIN_EDIT) bline|=BL_EDIT; if(api->bottomline != NULL) api->bottomline(bline); - while(opts<MAX_OPTS) + while(option!=NULL && opts<MAX_OPTS) if(option[opts]==NULL || option[opts][0]==0) break; else opts++; -- GitLab