"fileName" cannot be NULL

This commit is contained in:
Roberto Ierusalimschy
1998-07-12 13:10:38 -03:00
parent dcb1a08906
commit 64ad009fb2

5
lgc.c
View File

@@ -1,5 +1,5 @@
/* /*
** $Id: lgc.c,v 1.17 1998/03/06 16:54:42 roberto Exp roberto $ ** $Id: lgc.c,v 1.18 1998/03/09 21:49:52 roberto Exp roberto $
** Garbage Collector ** Garbage Collector
** See Copyright Notice in lua.h ** See Copyright Notice in lua.h
*/ */
@@ -169,8 +169,7 @@ static void protomark (TProtoFunc *f)
LocVar *v = f->locvars; LocVar *v = f->locvars;
int i; int i;
f->head.marked = 1; f->head.marked = 1;
if (f->fileName) strmark(f->fileName);
strmark(f->fileName);
for (i=0; i<f->nconsts; i++) for (i=0; i<f->nconsts; i++)
markobject(&f->consts[i]); markobject(&f->consts[i]);
if (v) { if (v) {