From: Dmitry Volyntsev Date: Thu, 15 Mar 2018 12:15:24 +0000 (+0300) Subject: Making njs_exception_error_create() thread-safe. X-Git-Tag: 0.2.0~22 X-Git-Url: http://git.kaiwu.me/postgresql/log/contrib/postgres_fdw/static/gitweb.js?a=commitdiff_plain;h=26450e028130cf50909d7a653c0e3e6e5a803655;p=njs.git Making njs_exception_error_create() thread-safe. --- diff --git a/njs/njs_error.c b/njs/njs_error.c index 32a94a5c..fd0082fa 100644 --- a/njs/njs_error.c +++ b/njs/njs_error.c @@ -39,8 +39,7 @@ njs_exception_error_create(njs_vm_t *vm, njs_value_type_t type, nxt_int_t ret; njs_value_t string; njs_object_t *error; - - static char buf[256]; + char buf[256]; if (fmt != NULL) { va_start(args, fmt);