mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-24 00:03:03 +01:00
Fixed bug CORE-3860 : Trace API: Faulty database filter crashes server
This commit is contained in:
parent
cfe2780375
commit
781d2e322b
@ -63,6 +63,9 @@ void AdminException::setLocation(const Firebird::PathName& file, int lineNumber)
|
||||
fileName = file;
|
||||
Firebird::string buffer;
|
||||
|
||||
buffer.printf("%s, line %d: %s", fileName.c_str(), lineNumber, text.c_str());
|
||||
if (fileName.isEmpty())
|
||||
buffer.printf("line %d: %s", lineNumber, text.c_str());
|
||||
else
|
||||
buffer.printf("%s, line %d: %s", fileName.c_str(), lineNumber, text.c_str());
|
||||
text = buffer;
|
||||
}
|
||||
|
@ -104,7 +104,7 @@ void InputStream::release()
|
||||
|
||||
const char* InputStream::getFileName() const
|
||||
{
|
||||
return NULL;
|
||||
return "";
|
||||
}
|
||||
|
||||
InputFile* InputStream::getInputFile()
|
||||
|
Loading…
Reference in New Issue
Block a user