mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-24 02:43:03 +01:00
Fixed static variables in verify_database_name() - thanks to Claudio
This commit is contained in:
parent
1ef1dba578
commit
b85be10e63
@ -5677,14 +5677,14 @@ static vdnResult verify_database_name(const Firebird::PathName& name, ISC_STATUS
|
||||
{
|
||||
// Check for security2.fdb
|
||||
static TEXT SecurityNameBuffer[MAXPATHLEN] = "";
|
||||
static Firebird::PathName ExpandedSecurityNameBuffer(*getDefaultMemoryPool());
|
||||
static Firebird::Mutex mutex;
|
||||
static Firebird::GlobalPtr<Firebird::PathName> ExpandedSecurityNameBuffer;
|
||||
static Firebird::GlobalPtr<Firebird::Mutex> mutex;
|
||||
|
||||
Firebird::MutexLockGuard guard(mutex);
|
||||
|
||||
if (! SecurityNameBuffer[0]) {
|
||||
SecurityDatabase::getPath(SecurityNameBuffer);
|
||||
ExpandedSecurityNameBuffer = SecurityNameBuffer;
|
||||
ExpandedSecurityNameBuffer->assign(SecurityNameBuffer);
|
||||
ISC_expand_filename(ExpandedSecurityNameBuffer, false);
|
||||
}
|
||||
if (name == SecurityNameBuffer || name == ExpandedSecurityNameBuffer)
|
||||
|
Loading…
Reference in New Issue
Block a user