diff options
Diffstat (limited to 'src/bank-lib/bank_api_debit.c')
-rw-r--r-- | src/bank-lib/bank_api_debit.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/bank-lib/bank_api_debit.c b/src/bank-lib/bank_api_debit.c index 6642dda81..872443209 100644 --- a/src/bank-lib/bank_api_debit.c +++ b/src/bank-lib/bank_api_debit.c @@ -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]; |