summaryrefslogtreecommitdiff
path: root/gfx
diff options
context:
space:
mode:
authorWerner Almesberger <werner@almesberger.net>2016-08-30 17:30:49 -0300
committerWerner Almesberger <werner@almesberger.net>2016-08-30 17:30:49 -0300
commitafd34a0fd3632985d106c4532bc5f96c1fd6bbfb (patch)
treec3439529e6562a174fe00986e5f6c46f471df25d /gfx
parenta08e3a8ca8f7da2d934f021ef9e88fca44443e4c (diff)
downloadeeshow-afd34a0fd3632985d106c4532bc5f96c1fd6bbfb.tar.gz
eeshow-afd34a0fd3632985d106c4532bc5f96c1fd6bbfb.tar.bz2
eeshow-afd34a0fd3632985d106c4532bc5f96c1fd6bbfb.zip
gfx/cro.c (cr_pdf_init): don't forget to setup the font
Caused a Conditional jump or move depends on uninitialised value(s) in valgrind.
Diffstat (limited to 'gfx')
-rw-r--r--gfx/cro.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gfx/cro.c b/gfx/cro.c
index 6f9ad6d..32734d2 100644
--- a/gfx/cro.c
+++ b/gfx/cro.c
@@ -601,6 +601,7 @@ static void *cr_pdf_init(void)
cc->s = cairo_pdf_surface_create(NULL, 16, 16);
cc->cr = cairo_create(cc->s);
+ setup_font(cc);
if (cc->add_toc)
cc->toc = pdftoc_begin();