-be more strict about 200 vs. 204

This commit is contained in:
Christian Grothoff 2022-12-19 14:49:49 +01:00
parent 373673352f
commit 4513cde0df
No known key found for this signature in database
GPG Key ID: 939E6BE1E29FC3CC
2 changed files with 5 additions and 3 deletions

View File

@ -97,9 +97,10 @@ parse_account_history (struct TALER_BANK_CreditHistoryHandle *hh,
}
{
size_t len = json_array_size (history_array);
struct TALER_BANK_CreditDetails cd[len];
struct TALER_BANK_CreditDetails cd[GNUNET_NZL (len)];
for (unsigned int i = 0; i<json_array_size (history_array); i++)
GNUNET_break_op (0 != len);
for (size_t i = 0; i<len; i++)
{
struct TALER_BANK_CreditDetails *td = &cd[i];
struct GNUNET_JSON_Specification hist_spec[] = {

View File

@ -97,8 +97,9 @@ parse_account_history (struct TALER_BANK_DebitHistoryHandle *hh,
}
{
size_t len = json_array_size (history_array);
struct TALER_BANK_DebitDetails dd[len];
struct TALER_BANK_DebitDetails dd[GNUNET_NZL (len)];
GNUNET_break_op (0 != len);
for (unsigned int i = 0; i<len; i++)
{
struct TALER_BANK_DebitDetails *td = &dd[i];