From 624c5fda989e36df48537aac2a63c6ee80e350d4 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Tue, 23 Aug 2022 14:29:39 +0200 Subject: -avoid double next --- src/exchange-tools/taler-exchange-offline.c | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'src/exchange-tools/taler-exchange-offline.c') diff --git a/src/exchange-tools/taler-exchange-offline.c b/src/exchange-tools/taler-exchange-offline.c index a4413a244..839b8e22e 100644 --- a/src/exchange-tools/taler-exchange-offline.c +++ b/src/exchange-tools/taler-exchange-offline.c @@ -4265,7 +4265,7 @@ do_extensions_show (char *const *args) json_dumps (obj, JSON_INDENT (2))); json_decref (obj); - next (args); + next (args + 1); } @@ -4326,10 +4326,16 @@ do_extensions_sign (char *const *args) &sig)); output_operation (OP_EXTENSIONS, obj); - next (args); + next (args + 1); } +/** + * Dispatch @a args in the @a cmds array. + * + * @param args arguments with subcommand to dispatch + * @param cmds array of possible subcommands to call + */ static void cmd_handler (char *const *args, const struct SubCommand *cmds) @@ -4397,7 +4403,6 @@ do_work_extensions (char *const *args) } cmd_handler (args, cmds); - next (args + 1); } -- cgit v1.2.3