diff --git a/src/ostree/ot-builtin-remote.c b/src/ostree/ot-builtin-remote.c index 75abc559..3a9c3b74 100644 --- a/src/ostree/ot-builtin-remote.c +++ b/src/ostree/ot-builtin-remote.c @@ -98,7 +98,7 @@ ostree_builtin_remote (int argc, char **argv, OstreeRepo *repo, GCancellable *ca if (!strcmp (op, "add")) { - const char *url = argv[3]; + const char *url; char **iter; gs_free char *target_name = NULL; gs_unref_object GFile *target_conf = NULL; @@ -110,6 +110,8 @@ ostree_builtin_remote (int argc, char **argv, OstreeRepo *repo, GCancellable *ca goto out; } + url = argv[3]; + optbuilder = g_variant_builder_new (G_VARIANT_TYPE ("a{sv}")); if (argc > 4)