--- ray/src/common/font.c 2003/05/13 17:58:32 2.14 +++ ray/src/common/font.c 2003/07/27 22:12:01 2.16 @@ -1,5 +1,5 @@ #ifndef lint -static const char RCSid[] = "$Id: font.c,v 2.14 2003/05/13 17:58:32 greg Exp $"; +static const char RCSid[] = "$Id: font.c,v 2.16 2003/07/27 22:12:01 schorsch Exp $"; #endif /* * Polygonal font handling routines @@ -117,6 +117,7 @@ fonterr: error(USER, errmsg); memerr: error(SYSTEM, "out of memory in fontglyph"); + return NULL; /* pro forma return */ } @@ -128,12 +129,12 @@ FONT *fnt; register FONT *fl, *f; register int i; /* check reference count */ - if (fnt != NULL && (fnt->nref-- > 1 | retainfonts)) + if (fnt != NULL && ((fnt->nref-- > 1) | retainfonts)) return; head.next = fontlist; fl = &head; while ((f = fl->next) != NULL) - if ((fnt == NULL | fnt == f)) { + if ((fnt == NULL) | (fnt == f)) { fl->next = f->next; for (i = 0; i < 256; i++) if (f->fg[i] != NULL)