summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKen Sharp <ken.sharp@artifex.com>2022-08-17 12:57:30 +0100
committerKen Sharp <ken.sharp@artifex.com>2022-08-17 12:57:51 +0100
commit3eb1eeac22f53b8b332e67d8ba18540f4020eadc (patch)
tree578f950bc68f42d41188c7c4765bcf9eca26b128
parentf08b369a16ef9de025ce85768d2bb54981e531f6 (diff)
downloadghostpdl-3eb1eeac22f53b8b332e67d8ba18540f4020eadc.tar.gz
Coverity ID 302300
Two booleans were initialised with the wrong value which meant some code could never be executed.
-rw-r--r--pdf/pdf_annot.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/pdf/pdf_annot.c b/pdf/pdf_annot.c
index bb5d6c410..42cf76d64 100644
--- a/pdf/pdf_annot.c
+++ b/pdf/pdf_annot.c
@@ -3632,8 +3632,8 @@ static int pdfi_annot_render_Widget(pdf_context *ctx, pdf_dict *annot)
static int pdfi_annot_draw_Widget(pdf_context *ctx, pdf_dict *annot, pdf_obj *NormAP, bool *render_done)
{
int code = 0;
- bool found_T = true;
- bool found_FT = true, known = false;
+ bool found_T = false;
+ bool found_FT = false, known = false;
pdf_obj *T = NULL;
pdf_obj *FT = NULL;
pdf_dict *Parent = NULL;