summaryrefslogtreecommitdiff
path: root/src/db/plugins/simple/SimpleDatabasePlugin.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'src/db/plugins/simple/SimpleDatabasePlugin.cxx')
-rw-r--r--src/db/plugins/simple/SimpleDatabasePlugin.cxx5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/db/plugins/simple/SimpleDatabasePlugin.cxx b/src/db/plugins/simple/SimpleDatabasePlugin.cxx
index 97e2e6c2b..aa62870c6 100644
--- a/src/db/plugins/simple/SimpleDatabasePlugin.cxx
+++ b/src/db/plugins/simple/SimpleDatabasePlugin.cxx
@@ -386,10 +386,7 @@ SimpleDatabase::Save(Error &error)
#ifdef ENABLE_ZLIB
std::unique_ptr<GzipOutputStream> gzip;
if (compress) {
- gzip.reset(new GzipOutputStream(*os, error));
- if (!gzip->IsDefined())
- return false;
-
+ gzip.reset(new GzipOutputStream(*os));
os = gzip.get();
}
#endif