diff options
author | Ken Sharp <ken.sharp@artifex.com> | 2013-07-09 07:54:37 +0100 |
---|---|---|
committer | Ken Sharp <ken.sharp@artifex.com> | 2013-07-09 07:55:16 +0100 |
commit | a9f3d46240cda455d8f42feee2350f40fa26e3e7 (patch) | |
tree | 0867c61d65c1e6e65a571b5e4346b6d5ab40e5c2 | |
parent | 8accdfa6986e7247103e80b7c12dd6b39ddf8a4c (diff) | |
download | ghostpdl-a9f3d46240cda455d8f42feee2350f40fa26e3e7.tar.gz |
Fix a benign compiler warning
Check a return code and take appropriate action, this was a pre-existing
fault flagged up when the code changed with the prior commit.
-rw-r--r-- | gs/devices/vector/gdevpdtt.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gs/devices/vector/gdevpdtt.c b/gs/devices/vector/gdevpdtt.c index 7c8700042..cd8f7b42e 100644 --- a/gs/devices/vector/gdevpdtt.c +++ b/gs/devices/vector/gdevpdtt.c @@ -2466,9 +2466,12 @@ pdf_set_text_process_state(gx_device_pdf *pdev, return code; code = pdf_prepare_stroke(pdev, pis); - if (code >= 0) + if (code >= 0) { code = gdev_vector_prepare_stroke((gx_device_vector *)pdev, pis, NULL, NULL, 1); + if (code < 0) + return code; + } code = pdf_open_contents(pdev, PDF_IN_STRING); if (code < 0) |