diff options
-rw-r--r-- | src/libdraw/openfont.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libdraw/openfont.c b/src/libdraw/openfont.c index f798983b..fdbc6563 100644 --- a/src/libdraw/openfont.c +++ b/src/libdraw/openfont.c @@ -221,6 +221,8 @@ openfont(Display *d, char *name) *p = '\0'; f = openfont1(d, name); + if(!f) + return nil; f->lodpi = f; f->namespec = namespec; |