summaryrefslogtreecommitdiff
path: root/gs/base/gsfont.c
diff options
context:
space:
mode:
authorAlex Cherepanov <alex.cherepanov@artifex.com>2009-12-07 05:46:36 +0000
committerAlex Cherepanov <alex.cherepanov@artifex.com>2009-12-07 05:46:36 +0000
commit24802972cc395fdaa5cfb0cb8a7983a05afb9aea (patch)
tree2e2d4fd53eb2a82eeb35dc1beec14dee0037bcaa /gs/base/gsfont.c
parent259149aae9ad05b74022294d18410bb5678ec8f9 (diff)
Fix a Coverity warning. Add missing assignment to 'code' variable. The later
use of 'code' in the conditional expression indicates that this was the author's intention. DIFFERENCES: None. git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@10458 a1074d23-0009-0410-80fe-cf8c14f379e6
Diffstat (limited to 'gs/base/gsfont.c')
-rw-r--r--gs/base/gsfont.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gs/base/gsfont.c b/gs/base/gsfont.c
index 52941f6d1..3d8670667 100644
--- a/gs/base/gsfont.c
+++ b/gs/base/gsfont.c
@@ -1029,7 +1029,7 @@ gs_default_glyph_info(gs_font *font, gs_glyph glyph, const gs_matrix *pmat,
info->v.x = sbw[0];
info->v.y = sbw[1];
} else {
- gs_distance_transform(sbw[0], sbw[1], pmat, &info->v);
+ code = gs_distance_transform(sbw[0], sbw[1], pmat, &info->v);
if (code < 0)
return code;
}