From 8be972de124c89ad57f997ae627cf11c7f04315f Mon Sep 17 00:00:00 2001 From: TheAssassin Date: Wed, 12 Jul 2023 16:24:34 +0200 Subject: [PATCH] Fix crash when LDAI_OUTPUT is set (but OUTPUT is not) --- src/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.cpp b/src/main.cpp index 0c2a8cf..66d9cb0 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -185,7 +185,7 @@ int main(const int argc, const char* const* const argv) { doSomethingWithEnvVar({"LDAI_OUTPUT", "OUTPUT"}, [&](const auto& value) { (void) value; - args.push_back(strdup(getenv("OUTPUT"))); + args.push_back(strdup(value.c_str())); }); doSomethingWithEnvVar({"LDAI_NO_APPSTREAM", "NO_APPSTREAM"}, [&](const auto& value) {