summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2016-02-21 13:16:27 +0100
committerMax Kellermann <max@duempel.org>2016-02-21 13:16:27 +0100
commit82b8f4f1cec00b3b7d9094254a07506d0aa6050e (patch)
treedbdec54a9d3438f3a01c6dad9ce7db4a987c750f /src
parent0705f42cf8be9224780c09d21e5568ac9c9f086e (diff)
archive/bzip2: use C++11 initializer
Diffstat (limited to 'src')
-rw-r--r--src/archive/plugins/Bzip2ArchivePlugin.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/archive/plugins/Bzip2ArchivePlugin.cxx b/src/archive/plugins/Bzip2ArchivePlugin.cxx
index 0bbaba954..37a9ecc4f 100644
--- a/src/archive/plugins/Bzip2ArchivePlugin.cxx
+++ b/src/archive/plugins/Bzip2ArchivePlugin.cxx
@@ -88,7 +88,7 @@ public:
struct Bzip2InputStream final : public InputStream {
Bzip2ArchiveFile *archive;
- bool eof;
+ bool eof = false;
bz_stream bzstream;
@@ -150,7 +150,7 @@ Bzip2InputStream::Bzip2InputStream(Bzip2ArchiveFile &_context,
const char *_uri,
Mutex &_mutex, Cond &_cond)
:InputStream(_uri, _mutex, _cond),
- archive(&_context), eof(false)
+ archive(&_context)
{
archive->Ref();
}