Skip to content

Commit

Permalink
Fix crash when LDAI_OUTPUT is set (but OUTPUT is not)
Browse files Browse the repository at this point in the history
  • Loading branch information
TheAssassin committed Jul 12, 2023
1 parent 860eb1f commit 8be972d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 8be972d

Please sign in to comment.