summaryrefslogtreecommitdiff
path: root/fitz
diff options
context:
space:
mode:
authorSebastian Rasmussen <sebras@gmail.com>2012-05-01 17:23:33 +0200
committerRobin Watts <robin.watts@artifex.com>2012-05-07 18:31:40 +0100
commit434f54a053dd8ebd55fb70b9ce1eba45882f6fc4 (patch)
treec6e33360c5230e9edec91f4d3f6df4c5fefc9783 /fitz
parentda81e87e436ca25299e98c67dff7514a8519e3cb (diff)
downloadmupdf-434f54a053dd8ebd55fb70b9ce1eba45882f6fc4.tar.xz
Do not rely on printf NULL-pointer handling for missing font names.
Diffstat (limited to 'fitz')
-rw-r--r--fitz/res_font.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fitz/res_font.c b/fitz/res_font.c
index a0c2fc2a..c279c75b 100644
--- a/fitz/res_font.c
+++ b/fitz/res_font.c
@@ -56,7 +56,7 @@ fz_new_font(fz_context *ctx, char *name, int use_glyph_bbox, int glyph_count)
else
{
if (use_glyph_bbox)
- fz_warn(ctx, "not building glyph bbox table for font '%s' with %d glyphs", name, glyph_count);
+ fz_warn(ctx, "not building glyph bbox table for font '%s' with %d glyphs", font->name, glyph_count);
font->bbox_count = 0;
font->bbox_table = NULL;
}