Make static buffer thread local
This commit is contained in:
parent
1af568ac88
commit
86e0c17f11
|
@ -391,7 +391,7 @@ static int parseFormat(headerSprintfArgs hsa, char * str,
|
|||
|
||||
if (findTag(hsa, token, start)) {
|
||||
/* Use static buffer as hsa->errmsg is const char * */
|
||||
static char errmsg[1024];
|
||||
static __thread char errmsg[1024];
|
||||
snprintf(errmsg, 1024, _("unknown tag: \"%s\""), start);
|
||||
hsa->errmsg = (const char *)(&errmsg);
|
||||
goto errxit;
|
||||
|
|
Loading…
Reference in New Issue