The code can now set cur_flist to NULL sooner than it used to, so the

flist_for_ndx() routine needs to work when cur_flist is NULL.
This commit is contained in:
Wayne Davison committed 2007-01-30 03:57:55 +00:00
1 parent 04c722d5e0
commit 87a34ce56a
1 file changed
+1 -1
+1 -1
View File
@@ -407,7 +407,7 @@ struct file_list *flist_for_ndx(int ndx)
{
struct file_list *flist = cur_flist;
if (!flist)
if (!flist && !(flist = first_flist))
return NULL;
while (ndx < flist->ndx_start) {