mirror of
https://github.com/mdbtools/mdbtools.git
synced 2025-09-19 02:27:55 +08:00
Use thread-local storage in ODBC connector
Fix possible race condition with multiple connections in the same process
This commit is contained in:
@@ -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';
|
||||
|
Reference in New Issue
Block a user