aboutsummaryrefslogtreecommitdiff
path: root/src/util/amount.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2020-04-02 11:34:52 +0200
committerChristian Grothoff <christian@grothoff.org>2020-04-02 11:34:52 +0200
commit340ac36199f3e515fae285b8f563a0d9a6618cff (patch)
tree217ca0a305fde640f08f7d2552994191d270357c /src/util/amount.c
parentd1bf26929e93f01b116d4d12706c58485cf65f4c (diff)
downloadexchange-340ac36199f3e515fae285b8f563a0d9a6618cff.tar.gz
exchange-340ac36199f3e515fae285b8f563a0d9a6618cff.tar.bz2
exchange-340ac36199f3e515fae285b8f563a0d9a6618cff.zip
fix #6146
Diffstat (limited to 'src/util/amount.c')
-rw-r--r--src/util/amount.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/util/amount.c b/src/util/amount.c
index 717144984..95b40add8 100644
--- a/src/util/amount.c
+++ b/src/util/amount.c
@@ -625,7 +625,8 @@ const char *
TALER_amount2s (const struct TALER_Amount *amount)
{
/* 12 is sufficient for a uint32_t value in decimal; 3 is for ":.\0" */
- static char result[TALER_AMOUNT_FRAC_LEN + TALER_CURRENCY_LEN + 3 + 12];
+ static GNUNET_THREAD_LOCAL char result[TALER_AMOUNT_FRAC_LEN
+ + TALER_CURRENCY_LEN + 3 + 12];
struct TALER_Amount norm;
if (GNUNET_YES != TALER_amount_is_valid (amount))