diff options
author | Christian Grothoff <christian@grothoff.org> | 2023-05-10 00:57:00 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2023-05-10 00:57:00 +0200 |
commit | 32f00d5c4809c7da86ec1b433dc1e2d6f9598d9b (patch) | |
tree | d804893770cba261dc90db388a82dc57dee5b7a7 /src/lib/merchant_api_get_orders.c | |
parent | d32e45efb9f5e222bc8abea4d6700a6f64649167 (diff) | |
download | merchant-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.c | 2 |
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; |