Skip to content
Snippets Groups Projects
Commit d2014d29 authored by rswindell's avatar rswindell
Browse files

Don't puke in ulist() if options arg is NULL.

parent 0364ed0c
No related branches found
No related tags found
No related merge requests found
......@@ -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++;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment