Skip to content

Commit 8be972d

Browse files
committed
Fix crash when LDAI_OUTPUT is set (but OUTPUT is not)
1 parent 860eb1f commit 8be972d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ int main(const int argc, const char* const* const argv) {
185185

186186
doSomethingWithEnvVar({"LDAI_OUTPUT", "OUTPUT"}, [&](const auto& value) {
187187
(void) value;
188-
args.push_back(strdup(getenv("OUTPUT")));
188+
args.push_back(strdup(value.c_str()));
189189
});
190190

191191
doSomethingWithEnvVar({"LDAI_NO_APPSTREAM", "NO_APPSTREAM"}, [&](const auto& value) {

0 commit comments

Comments
 (0)