From b71d772e7a9c061c17ea0cbd0a3c053d36290032 Mon Sep 17 00:00:00 2001 From: Ned Wright Date: Tue, 19 Dec 2023 18:23:05 +0000 Subject: [PATCH] Add string empty check --- core/debug_is/debug.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/core/debug_is/debug.cc b/core/debug_is/debug.cc index 9fc7a23..69fb745 100755 --- a/core/debug_is/debug.cc +++ b/core/debug_is/debug.cc @@ -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; }