aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/backend/taler-merchant-httpd_private-get-pos.c8
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 (