summaryrefslogtreecommitdiff
path: root/fitz/dev_text.c
diff options
context:
space:
mode:
authorTor Andersson <tor@ghostscript.com>2010-05-31 23:16:27 +0200
committerTor Andersson <tor@ghostscript.com>2010-05-31 23:16:27 +0200
commit9f4bbee2143213907c78edc05ea70809d60326d9 (patch)
treea5bf02bb57c3245ad2e8645025576163b0fe3ae1 /fitz/dev_text.c
parent1d571e6410dcf2a93a03b0b170b723b032da28a3 (diff)
downloadmupdf-9f4bbee2143213907c78edc05ea70809d60326d9.tar.xz
Initialize variables, fixing potential bugs.
Diffstat (limited to 'fitz/dev_text.c')
-rw-r--r--fitz/dev_text.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fitz/dev_text.c b/fitz/dev_text.c
index 91b259b4..9a370648 100644
--- a/fitz/dev_text.c
+++ b/fitz/dev_text.c
@@ -259,7 +259,7 @@ fz_textextractspan(fz_textspan **last, fz_text *text, fz_matrix ctm, fz_point *p
/* Get advance width and update pen position */
if (font->ftface)
{
- FT_Fixed ftadv;
+ FT_Fixed ftadv = 0;
fterr = FT_Get_Advance(font->ftface, text->els[i].gid,
FT_LOAD_NO_BITMAP | FT_LOAD_NO_HINTING,
&ftadv);