diff --git a/src/frontend/typesdef.c b/src/frontend/typesdef.c index 24400ffaf..79a9440b4 100644 --- a/src/frontend/typesdef.c +++ b/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;