mirror of
https://github.com/openappsec/openappsec.git
synced 2025-06-28 16:41:02 +03:00
Add string empty check
This commit is contained in:
parent
62e75b8739
commit
b71d772e7a
@ -109,6 +109,7 @@ public:
|
||||
load(cereal::JSONInputArchive &ar)
|
||||
{
|
||||
ar(cereal::make_nvp("Output", stream_name));
|
||||
if (stream_name.empty()) stream_name = "STDOUT";
|
||||
if (stream_name != "FOG" && stream_name != "STDOUT" && stream_name.front() != '/') {
|
||||
stream_name = getLogFilesPathConfig() + "/" + stream_name;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user