Commit 7fa7f7b1 authored by css1dw's avatar css1dw
Browse files

fixed embarrassing bug in print_all_params - null check

in the wrong place - failed to check properly!
parent 001bc34e
......@@ -882,8 +882,10 @@ 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 )
{
fprintf( stderr,
......@@ -891,7 +893,6 @@ static void print_all_params( d, s ) declnlist d; shapelist s;
s->name, d->name );
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