mirror of
https://github.com/mdbtools/mdbtools.git
synced 2025-04-05 20:31:00 +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:
parent
6fae16d5ef
commit
e1e5d9738e
@ -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';
|
||||
|
Loading…
Reference in New Issue
Block a user