diff options
author | Florian Dold <florian@dold.me> | 2024-07-01 01:02:44 +0200 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2024-07-01 01:02:44 +0200 |
commit | da7277d6f9ef98ea30f6cac22fe33563075581e6 (patch) | |
tree | 53ab79e992113121004d3241c409cb36aa57f58c /src/backend/taler-merchant-httpd_private-get-pos.c | |
parent | fefa93812b15fd03ddf683219fabfe6d4e4e9244 (diff) |
provide default category, PoS app needs itv0.11.9-dev.4
Diffstat (limited to 'src/backend/taler-merchant-httpd_private-get-pos.c')
-rw-r--r-- | src/backend/taler-merchant-httpd_private-get-pos.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/backend/taler-merchant-httpd_private-get-pos.c b/src/backend/taler-merchant-httpd_private-get-pos.c index 4c14b6ae..d1230243 100644 --- a/src/backend/taler-merchant-httpd_private-get-pos.c +++ b/src/backend/taler-merchant-httpd_private-get-pos.c @@ -65,6 +65,14 @@ add_product (void *cls, 0 == json_array_append_new ( cata, json_integer (categories[i]))); + if (0 == num_categories) + { + // If there is no category, we return the default category + GNUNET_assert ( + 0 == json_array_append_new ( + cata, + json_integer (0))); + } GNUNET_assert ( 0 == json_array_append_new ( |