]> git.ipfire.org Git - pakfire.git/commitdiff
cli: client: Fix passing context pointer
authorMichael Tremer <michael.tremer@ipfire.org>
Tue, 17 Oct 2023 09:44:13 +0000 (09:44 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Tue, 17 Oct 2023 09:44:13 +0000 (09:44 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/cli/pakfire-client.c

index 782f03c84fd6c3f0f014b6618c23d3cf1eb79b31..512add58686c56c4c49f73f27e5c65f93e1cecaf 100644 (file)
@@ -51,7 +51,7 @@ int main(int argc, char* argv[]) {
        pakfire_ctx_set_progress_callback(ctx, cli_setup_progressbar, NULL);
 
        // Parse the command line and run any commands
-       r = cli_parse(NULL, commands, args_doc, doc, NULL, argc, argv, &ctx);
+       r = cli_parse(NULL, commands, args_doc, doc, NULL, argc, argv, ctx);
 
 ERROR:
        if (ctx)