aboutsummaryrefslogtreecommitdiff
path: root/src/exchange-tools
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2022-08-23 14:29:39 +0200
committerChristian Grothoff <christian@grothoff.org>2022-08-23 14:29:39 +0200
commit624c5fda989e36df48537aac2a63c6ee80e350d4 (patch)
tree8be3bd60a96b9a9730536f83afbfefbf2b535963 /src/exchange-tools
parent758a149059fa1bc9874886a65c8808fb4c7996d1 (diff)
-avoid double next
Diffstat (limited to 'src/exchange-tools')
-rw-r--r--src/exchange-tools/taler-exchange-offline.c11
1 files changed, 8 insertions, 3 deletions
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);
}