summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlbert Astals Cid <[email protected]>2017-11-06 09:59:01 +0100
committerAlbert Astals Cid <[email protected]>2017-11-06 10:02:20 +0100
commit433d1eac23599c1bc2c9fc5cc9c6b0189c1bbd22 (patch)
tree321b13c8e6f5e55aaa840afc550d84d9c96c29bb
parent9d450161b26853b453cb83544bd7741a7255bd9b (diff)
Initialize copyJob just in case
-rw-r--r--part.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/part.cpp b/part.cpp
index e6b7ce1..93ffadb 100644
--- a/part.cpp
+++ b/part.cpp
@@ -2473,7 +2473,7 @@ bool Part::saveAs( const QUrl & saveUrl, SaveAsFlags flags )
tf.close();
QScopedPointer<QTemporaryFile> tempFile;
- KIO::Job *copyJob; // this will be filled with the job that writes to saveUrl
+ KIO::Job *copyJob = nullptr; // this will be filled with the job that writes to saveUrl
// Does the user want a .okular archive?
if ( flags & SaveAsOkularArchive )