diff options
-rw-r--r-- | difs/fonts.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/difs/fonts.c b/difs/fonts.c index 61b13c1..2ba7c42 100644 --- a/difs/fonts.c +++ b/difs/fonts.c @@ -717,8 +717,9 @@ set_font_path_elements( FontPathElementPtr *ftmp = (FontPathElementPtr *) fsrealloc(fplist, sizeof(FontPathElementPtr) * validpaths); - if (!ftmp) + if (!ftmp && validpaths) goto bail; + fplist = ftmp; npaths = validpaths; } |