Commit 7fa7f7b1 authored by css1dw's avatar css1dw

fixed embarrassing bug in print_all_params - null check

in the wrong place - failed to check properly!
parent 001bc34e
......@@ -882,15 +882,16 @@ static void print_all_params( d, s ) declnlist d; shapelist s;
} else
{
n = pl->item->num;
for( p = s->params; --n; p = p->next )
for( p = s->params; p != NULL && --n;
p = p->next )
;
if( p == NULL )
{
if( p == NULL )
{
fprintf( stderr,
fprintf( stderr,
"datadec: bad printitem in shape %s of type %s\n",
s->name, d->name );
exit(1);
}
exit(1);
}
print_param( s, p, d->Union );
}
......
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