Commit 8026b92a authored by dcw's avatar dcw

fixed clumsy error in detecting bad printitems..

parent c922100b
......@@ -648,11 +648,11 @@ static void write_all_params( dname, s ) char *dname; shape s;
{
int n = pl->item->num;
for( p = s->params; --n; p = p->next )
{
for( p = s->params;
p != NULL && --n;
p = p->next );
ASSERT( p != NULL,
("m2datadec: bad printitem number in shape %s of type %s\n", s->name, dname));
}
write_param( s->name, p );
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment