[Libosinfo] [PATCH osinfo-db-tools 3/7] export: Remove argc check in main()

Fabiano Fidêncio fidencio at redhat.com
Fri Sep 21 09:13:44 UTC 2018


osinfo-db-export does not have to take one argument as, in case the
archive file to export is not passed a generic one will be created.

Signed-off-by: Fabiano Fidêncio <fidencio at redhat.com>
---
 tools/osinfo-db-export.c | 6 ------
 1 file changed, 6 deletions(-)

diff --git a/tools/osinfo-db-export.c b/tools/osinfo-db-export.c
index 8b2d5fb..2c1bb8d 100644
--- a/tools/osinfo-db-export.c
+++ b/tools/osinfo-db-export.c
@@ -522,12 +522,6 @@ gint main(gint argc, gchar **argv)
         goto error;
     }
 
-    if (argc > 2) {
-        g_printerr(_("%s: expected path to one archive file to export\n"),
-                   argv0);
-        goto error;
-    }
-
     if (local)
         locs++;
     if (system)
-- 
2.17.1




More information about the Libosinfo mailing list