Browse Source

Allow 'nulltype', which returns NULL pointer.

Thus prevent a crash in cieq.
pre-master-46
Holger Vogt 4 years ago
parent
commit
e460b18f97
  1. 2
      src/frontend/typesdef.c

2
src/frontend/typesdef.c

@ -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;

Loading…
Cancel
Save