summaryrefslogtreecommitdiff
path: root/pdf/pdf_image.c
diff options
context:
space:
mode:
authorKen Sharp <ken.sharp@artifex.com>2022-08-16 08:36:52 +0100
committerKen Sharp <ken.sharp@artifex.com>2022-08-16 08:36:52 +0100
commitfe27fa051385386b2cfa46aeb9c24f37e488ee4d (patch)
tree9cf7027d8910241dd4e89e0d708859d58832ffdb /pdf/pdf_image.c
parent0d030ea5648e4271bad1774e9dbdeddae8cf78e1 (diff)
downloadghostpdl-fe27fa051385386b2cfa46aeb9c24f37e488ee4d.tar.gz
Coverity ID 380288
Since this is a failure exit, code must be less than zero, so testing code and branching if it is >= 0 is unreachable.
Diffstat (limited to 'pdf/pdf_image.c')
-rw-r--r--pdf/pdf_image.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/pdf/pdf_image.c b/pdf/pdf_image.c
index 8d24b798e..a9ab9250c 100644
--- a/pdf/pdf_image.c
+++ b/pdf/pdf_image.c
@@ -2657,10 +2657,7 @@ int pdfi_Do(pdf_context *ctx, pdf_dict *stream_dict, pdf_dict *page_dict)
exit:
if (AddedParent == true) {
- if (code >= 0)
- code = pdfi_dict_delete(ctx, sdict, "Parent");
- else
- (void)pdfi_dict_delete(ctx, sdict, "Parent");
+ (void)pdfi_dict_delete(ctx, sdict, "Parent");
pdfi_countdown(sdict);
}
(void)pdfi_loop_detector_cleartomark(ctx);