Allow 'nulltype', which returns NULL pointer.

Thus prevent a crash in cieq.
This commit is contained in:
Holger Vogt 2022-06-18 01:06:42 +02:00
parent dea9de72dc
commit eaf8977ba2
1 changed files with 1 additions and 1 deletions

View File

@ -272,7 +272,7 @@ ft_typabbrev(int typenum)
{
if ((typenum < NUMTYPES) && (typenum >= 0)) {
char* tp = types[typenum].t_abbrev;
if (cieq("rad", tp) && cx_degrees)
if (tp && cieq("rad", tp) && cx_degrees)
return ("Degree");
else
return tp;