summaryrefslogtreecommitdiff
path: root/src/lib/test_merchant_api.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2019-03-24 16:34:33 +0100
committerChristian Grothoff <christian@grothoff.org>2019-03-24 16:34:33 +0100
commit365d933c98eb9cb2474fe70dfe389da0f5ee70d4 (patch)
treef4420e8276cca2319fc19c19c9a2760f16265d26 /src/lib/test_merchant_api.c
parentf981076f64d11bd7c14903a7be4664012de2444f (diff)
downloadmerchant-365d933c98eb9cb2474fe70dfe389da0f5ee70d4.tar.gz
merchant-365d933c98eb9cb2474fe70dfe389da0f5ee70d4.tar.bz2
merchant-365d933c98eb9cb2474fe70dfe389da0f5ee70d4.zip
fix test case error handling
Diffstat (limited to 'src/lib/test_merchant_api.c')
-rw-r--r--src/lib/test_merchant_api.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/test_merchant_api.c b/src/lib/test_merchant_api.c
index 1f74b302..946760f3 100644
--- a/src/lib/test_merchant_api.c
+++ b/src/lib/test_merchant_api.c
@@ -1698,6 +1698,7 @@ refund_increase_cb (void *cls,
struct InterpreterState *is = cls;
struct Command *cmd = &is->commands[is->ip];
+ cmd->details.refund_increase.rio = NULL;
if (MHD_HTTP_OK != http_status)
{
GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
@@ -1705,7 +1706,6 @@ refund_increase_cb (void *cls,
fail (is);
return;
}
- cmd->details.refund_increase.rio = NULL;
next_command (is);
}
@@ -3925,7 +3925,7 @@ interpreter_run (void *cls)
&refund_amount,
cmd->details.refund_increase.reason,
instance,
- refund_increase_cb,
+ &refund_increase_cb,
is)))
{
GNUNET_break (0);