fix #6146
This commit is contained in:
parent
d1bf26929e
commit
340ac36199
@ -625,7 +625,8 @@ const char *
|
|||||||
TALER_amount2s (const struct TALER_Amount *amount)
|
TALER_amount2s (const struct TALER_Amount *amount)
|
||||||
{
|
{
|
||||||
/* 12 is sufficient for a uint32_t value in decimal; 3 is for ":.\0" */
|
/* 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;
|
struct TALER_Amount norm;
|
||||||
|
|
||||||
if (GNUNET_YES != TALER_amount_is_valid (amount))
|
if (GNUNET_YES != TALER_amount_is_valid (amount))
|
||||||
|
@ -37,7 +37,7 @@ const char *
|
|||||||
TALER_b2s (const void *buf,
|
TALER_b2s (const void *buf,
|
||||||
size_t buf_size)
|
size_t buf_size)
|
||||||
{
|
{
|
||||||
static char ret[9];
|
static GNUNET_THREAD_LOCAL char ret[9];
|
||||||
struct GNUNET_HashCode hc;
|
struct GNUNET_HashCode hc;
|
||||||
char *tmp;
|
char *tmp;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user