mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-23 06:03:02 +01:00
Merge pull request #35 from aafemt/CORE-5237
Postfix for #24 that fixes CORE-5271
This commit is contained in:
commit
739b993894
@ -136,6 +136,12 @@ void PathUtils::concatPath(Firebird::PathName& result,
|
|||||||
const Firebird::PathName& first,
|
const Firebird::PathName& first,
|
||||||
const Firebird::PathName& second)
|
const Firebird::PathName& second)
|
||||||
{
|
{
|
||||||
|
if (first.length() == 0)
|
||||||
|
{
|
||||||
|
result = second;
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
result = first;
|
result = first;
|
||||||
|
|
||||||
// First path used to be from trusted sources like getRootDirectory, etc.
|
// First path used to be from trusted sources like getRootDirectory, etc.
|
||||||
|
@ -108,6 +108,12 @@ void PathUtils::concatPath(Firebird::PathName& result,
|
|||||||
const Firebird::PathName& first,
|
const Firebird::PathName& first,
|
||||||
const Firebird::PathName& second)
|
const Firebird::PathName& second)
|
||||||
{
|
{
|
||||||
|
if (first.length() == 0)
|
||||||
|
{
|
||||||
|
result = second;
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
result = first;
|
result = first;
|
||||||
|
|
||||||
// First path used to be from trusted sources like getRootDirectory, etc.
|
// First path used to be from trusted sources like getRootDirectory, etc.
|
||||||
|
Loading…
Reference in New Issue
Block a user