From 16dfecb8c3fd1b7c05d1a3efabc6a7c7dba79557 Mon Sep 17 00:00:00 2001 From: Ian Parker Date: Sun, 19 Apr 2026 16:19:08 +0100 Subject: [PATCH 1/2] Apply suggested fix to src/libufc-connector/flightconnector.cpp from Copilot Autofix Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com> --- src/libufc-connector/flightconnector.cpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/libufc-connector/flightconnector.cpp b/src/libufc-connector/flightconnector.cpp index b360b37..047f3c6 100644 --- a/src/libufc-connector/flightconnector.cpp +++ b/src/libufc-connector/flightconnector.cpp @@ -234,7 +234,15 @@ void FlightConnector::loadConfig(const Config& config) bool writeConfig = false; if (config.configPath.empty()) { - m_config.configPath = string(getenv("HOME")) + "/.config/ufc.yml"; + const char* home = getenv("HOME"); + if (home != nullptr) + { + m_config.configPath = string(home) + "/.config/ufc.yml"; + } + else + { + m_config.configPath = "./ufc.yml"; + } writeConfig = true; } else From 11d836d79629b1f1c83063eed8ae619d0853df4d Mon Sep 17 00:00:00 2001 From: Ian Parker Date: Sun, 19 Apr 2026 16:19:09 +0100 Subject: [PATCH 2/2] Apply suggested fix to src/libufc-connector/flightconnector.cpp from Copilot Autofix Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com> --- src/libufc-connector/flightconnector.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libufc-connector/flightconnector.cpp b/src/libufc-connector/flightconnector.cpp index 047f3c6..0318a6f 100644 --- a/src/libufc-connector/flightconnector.cpp +++ b/src/libufc-connector/flightconnector.cpp @@ -173,7 +173,7 @@ void FlightConnector::wait() const // Ignore } } - if (m_updateDataSourceThread) + if (m_updateDataSourceThread && m_updateDataSourceThread->joinable()) { try {