Use thread-local storage in ODBC connector

Fix possible race condition with multiple connections in the same
process
This commit is contained in:
Evan Miller 2020-12-28 22:01:36 -05:00
parent 6fae16d5ef
commit e1e5d9738e

View File

@ -88,7 +88,7 @@ void FreeConnectParams (ConnectParams* params)
gchar* GetConnectParam (ConnectParams* params, const gchar* paramName)
{
static char tmp[FILENAME_MAX];
static __thread char tmp[FILENAME_MAX];
/* use old servername */
tmp[0] = '\0';