summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHib Eris <hib@hiberis.nl>2013-11-15 19:59:52 +0100
committerAlbert Astals Cid <aacid@kde.org>2013-11-15 19:59:52 +0100
commitc43a80e65fc570a8017892ba111a8c48ac33d9ad (patch)
treec6d5833c6168b9512b55b02cd08008999ea8f43b
parentf905d804c0d1c715d8423938f41b5a002c0ef15d (diff)
pdftotext: Silence warning for may be used uninitialized variable
Bug #71640
-rw-r--r--utils/pdftotext.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/pdftotext.cc b/utils/pdftotext.cc
index c5923298..62ba3a32 100644
--- a/utils/pdftotext.cc
+++ b/utils/pdftotext.cc
@@ -341,7 +341,7 @@ int main(int argc, char *argv[]) {
}
// write text file
- if (bbox) {
+ if (htmlMeta && bbox) { // htmlMeta && is superfluous but makes gcc happier
textOut = new TextOutputDev(NULL, physLayout, fixedPitch, rawOrder, htmlMeta);
if (textOut->isOk()) {