fix a seg when trying to print a null type

This commit is contained in:
Bill Currie 2002-04-09 21:37:46 +00:00
parent 76d004f9cf
commit c71ce480ad

View file

@ -94,8 +94,10 @@ pointer_type (type_t *aux)
void
print_type (type_t *type)
{
if (!type)
if (!type) {
printf (" (null)");
return;
}
switch (type->type) {
case ev_func:
print_type (type->aux_type);