aboutsummaryrefslogtreecommitdiff
path: root/src/backend/taler-merchant-httpd_private-get-orders.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2022-05-09 08:38:23 +0200
committerChristian Grothoff <christian@grothoff.org>2022-05-09 08:38:31 +0200
commit79801d5d3a192484ca09a49a7e171211109647bf (patch)
treefdd7785dbc295824107ac566d12b0c3decab611a /src/backend/taler-merchant-httpd_private-get-orders.c
parent407fd7eb725ce58515c5feab2a61ed4adb596e80 (diff)
-fix assertion
Diffstat (limited to 'src/backend/taler-merchant-httpd_private-get-orders.c')
-rw-r--r--src/backend/taler-merchant-httpd_private-get-orders.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/backend/taler-merchant-httpd_private-get-orders.c b/src/backend/taler-merchant-httpd_private-get-orders.c
index 04fd8bbd..e6f615ea 100644
--- a/src/backend/taler-merchant-httpd_private-get-orders.c
+++ b/src/backend/taler-merchant-httpd_private-get-orders.c
@@ -323,7 +323,8 @@ add_order (void *cls,
&contract_terms,
&os,
NULL);
- GNUNET_break (os == order_serial);
+ if (GNUNET_DB_STATUS_SUCCESS_ONE_RESULT == qs)
+ GNUNET_break (os == order_serial);
}
if (GNUNET_DB_STATUS_SUCCESS_NO_RESULTS == qs)
{