aboutsummaryrefslogtreecommitdiffstats
path: root/src/UpdateArchive.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'src/UpdateArchive.cxx')
-rw-r--r--src/UpdateArchive.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/UpdateArchive.cxx b/src/UpdateArchive.cxx
index ab174fa53..2e0755244 100644
--- a/src/UpdateArchive.cxx
+++ b/src/UpdateArchive.cxx
@@ -29,6 +29,7 @@
#include "ArchivePlugin.hxx"
#include "ArchiveFile.hxx"
#include "ArchiveVisitor.hxx"
+#include "util/Error.hxx"
#include <glib.h>
@@ -101,11 +102,10 @@ update_archive_file2(Directory *parent, const char *name,
const Path path_fs = map_directory_child_fs(parent, name);
/* open archive */
- GError *error = NULL;
- ArchiveFile *file = archive_file_open(plugin, path_fs.c_str(), &error);
+ Error error;
+ ArchiveFile *file = archive_file_open(plugin, path_fs.c_str(), error);
if (file == NULL) {
- g_warning("%s", error->message);
- g_error_free(error);
+ g_warning("%s", error.GetMessage());
return;
}