summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlbert Astals Cid <aacid@kde.org>2020-05-26 23:48:17 +0200
committerAlbert Astals Cid <aacid@kde.org>2020-05-26 23:48:17 +0200
commite9279fecf6f53c60cc85f30dc38198d5675bbe9e (patch)
treeded224f054a6b5027c240b487fe42957cc6e277c
parent9429aac41fefdbb8b70d3c3233835875c78283ba (diff)
Make Link that are "Unknown destination type" be "no ok"
otherwise we have uninitialized memory when asking for getKind() I mean we have it anyway, but it is understood that if isOk is false any further question you make is allowed to misbehave
-rw-r--r--poppler/Link.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/poppler/Link.cc b/poppler/Link.cc
index 38f4f3dd..0528db1a 100644
--- a/poppler/Link.cc
+++ b/poppler/Link.cc
@@ -401,10 +401,10 @@ LinkDest::LinkDest(const Array *a) {
// unknown link kind
} else {
error(errSyntaxWarning, -1, "Unknown annotation destination type");
+ return;
}
ok = true;
- return;
}
LinkDest::LinkDest(const LinkDest *dest) {