mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 15:22:04 +00:00
fix a seg when trying to print a null type
This commit is contained in:
parent
76d004f9cf
commit
c71ce480ad
1 changed files with 3 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue