summaryrefslogtreecommitdiff
path: root/src/lib/merchant_api_get_orders.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2023-05-10 00:57:00 +0200
committerChristian Grothoff <christian@grothoff.org>2023-05-10 00:57:00 +0200
commit32f00d5c4809c7da86ec1b433dc1e2d6f9598d9b (patch)
treed804893770cba261dc90db388a82dc57dee5b7a7 /src/lib/merchant_api_get_orders.c
parentd32e45efb9f5e222bc8abea4d6700a6f64649167 (diff)
downloadmerchant-32f00d5c4809c7da86ec1b433dc1e2d6f9598d9b.tar.gz
merchant-32f00d5c4809c7da86ec1b433dc1e2d6f9598d9b.tar.bz2
merchant-32f00d5c4809c7da86ec1b433dc1e2d6f9598d9b.zip
fix 0-length VLAs
Diffstat (limited to 'src/lib/merchant_api_get_orders.c')
-rw-r--r--src/lib/merchant_api_get_orders.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/merchant_api_get_orders.c b/src/lib/merchant_api_get_orders.c
index 7f08acb6..0a0ba3f0 100644
--- a/src/lib/merchant_api_get_orders.c
+++ b/src/lib/merchant_api_get_orders.c
@@ -76,7 +76,7 @@ parse_orders (const json_t *ia,
struct TALER_MERCHANT_OrdersGetHandle *ogh)
{
unsigned int oes_len = json_array_size (ia);
- struct TALER_MERCHANT_OrderEntry oes[oes_len];
+ struct TALER_MERCHANT_OrderEntry oes[GNUNET_NZL (oes_len)];
size_t index;
json_t *value;
int ret;