summaryrefslogtreecommitdiffstats
path: root/libqpdf/QPDFWriter.cc
diff options
context:
space:
mode:
authorJay Berkenbilt <ejb@ql.org>2013-07-07 21:35:00 +0200
committerJay Berkenbilt <ejb@ql.org>2013-07-07 21:36:51 +0200
commit212812d8372d01362252bf2ac189c15367ff4f5c (patch)
treec7085c84c1b7cae04fa3b88adf3824befbb59c37 /libqpdf/QPDFWriter.cc
parent66c88995fccf043d933c80bb0bf87360d0d81b18 (diff)
downloadqpdf-212812d8372d01362252bf2ac189c15367ff4f5c.tar.zst
Fix errors reported by Coverity
Thanks to Jiri Popelka from Red Hat for sending the output of a Coverity run over qpdf.
Diffstat (limited to 'libqpdf/QPDFWriter.cc')
-rw-r--r--libqpdf/QPDFWriter.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/libqpdf/QPDFWriter.cc b/libqpdf/QPDFWriter.cc
index 8d169f3b..499129b1 100644
--- a/libqpdf/QPDFWriter.cc
+++ b/libqpdf/QPDFWriter.cc
@@ -70,6 +70,7 @@ QPDFWriter::init()
encryption_V = 0;
encryption_R = 0;
encryption_dict_objid = 0;
+ pipeline = 0;
next_objid = 1;
cur_stream_length_id = 0;
cur_stream_length = 0;
@@ -2695,7 +2696,7 @@ QPDFWriter::writeLinearized()
this->next_objid = part4_first_obj;
enqueuePart(part4);
- assert(this->next_objid = after_part4);
+ assert(this->next_objid == after_part4);
this->next_objid = part6_first_obj;
enqueuePart(part6);
assert(this->next_objid == after_part6);