summaryrefslogtreecommitdiff
path: root/base/gspaint.c
diff options
context:
space:
mode:
authorKen Sharp <ken.sharp@artifex.com>2016-04-28 14:33:45 +0100
committerKen Sharp <ken.sharp@artifex.com>2016-04-28 14:33:45 +0100
commit60455507951739cc7826c9e0429d1273adf6b87c (patch)
tree12ca7ad40916542049ba53e07e41ffa36569742d /base/gspaint.c
parent4722eeefcd1f084e335422b53d6b87b5e73efa18 (diff)
downloadghostpdl-60455507951739cc7826c9e0429d1273adf6b87c.tar.gz
Coverity ID 94900 check and action a return code
Diffstat (limited to 'base/gspaint.c')
-rw-r--r--base/gspaint.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/base/gspaint.c b/base/gspaint.c
index 0aeaeab6e..2c7ccb0d0 100644
--- a/base/gspaint.c
+++ b/base/gspaint.c
@@ -491,6 +491,8 @@ gs_stroke(gs_state * pgs)
}
code = gx_path_add_char_path(pgs->show_gstate->path, pgs->path,
pgs->in_charpath);
+ if (code < 0)
+ return code;
}
if (gs_is_null_device(pgs->device)) {
/* Handle separately to prevent gs_state_color_load. */