commit cd891637eced98eeb18d00f01c54d61f523a2560
parent 1a136d2b43ad2ab00bd14de4c8e1ff863013e9fa
Author: Christian Grothoff <christian@grothoff.org>
Date: Sun, 2 Aug 2026 22:20:09 +0200
improve thread-safety; not used right now, but costs little and more defensive
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/util/amount.c b/src/util/amount.c
@@ -950,7 +950,7 @@ const struct TALER_Amount *
TALER_amount_set_find (const char *currency,
const struct TALER_AmountSet *as)
{
- static struct TALER_Amount z;
+ static GNUNET_THREAD_LOCAL struct TALER_Amount z;
for (unsigned int i = 0; i<as->taa_size; i++)
{