[Libosinfo] [osinfo-db-tools PATCH v2 2/2] import: Remove unused variable
Fabiano Fidêncio
fidencio at redhat.com
Mon Oct 8 08:59:07 UTC 2018
Signed-off-by: Fabiano Fidêncio <fidencio at redhat.com>
---
tools/osinfo-db-import.c | 3 ---
1 file changed, 3 deletions(-)
diff --git a/tools/osinfo-db-import.c b/tools/osinfo-db-import.c
index 289a85d..c0b4931 100644
--- a/tools/osinfo-db-import.c
+++ b/tools/osinfo-db-import.c
@@ -193,7 +193,6 @@ static int osinfo_db_import_extract(GFile *target,
int ret = -1;
int r;
GFile *file = NULL;
- GError *err = NULL;
gchar *source_file = NULL;
const gchar *uri_schemes[] = {"ftp", "http", NULL};
@@ -266,8 +265,6 @@ static int osinfo_db_import_extract(GFile *target,
ret = 0;
cleanup:
archive_read_free(arc);
- if (err)
- g_error_free(err);
if (file)
g_object_unref(file);
g_free(source_file);
--
2.19.1
More information about the Libosinfo
mailing list