From c89afdf47747d6364479a58b35f09a5869389bf5 Mon Sep 17 00:00:00 2001 From: Tixx <83774803+WiserTixx@users.noreply.github.com> Date: Tue, 24 Jun 2025 22:17:14 +0200 Subject: [PATCH] Check Co-authored-by: SaltySnail <51403141+SaltySnail@users.noreply.github.com> --- include/Utils.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/include/Utils.h b/include/Utils.h index a61c1be..8f66350 100644 --- a/include/Utils.h +++ b/include/Utils.h @@ -95,7 +95,9 @@ namespace Utils { else if (match[3].matched) varName = match[3].str(); // ${VAR} if (const wchar_t* envValue = _wgetenv(varName.c_str())) { - result.append(envValue); + if (envValue != nullptr) { + result.append(envValue); + } } lastPos = match.position() + match.length();