Skip to content

Commit

Permalink
fix: missing file save
Browse files Browse the repository at this point in the history
  • Loading branch information
Yamashi committed Apr 25, 2022
1 parent ef5d544 commit 4f73e08
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Code/server_runner/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,7 @@ static bool IsEULAAccepted()
const auto path = fs::current_path() / kConfigPathName / kEULAName;

auto pValue = std::getenv("TILTED_ACCEPT_EULA");
TiltedPhoques::String env = err == 0 ? pValue : "0";
free(pValue);
TiltedPhoques::String env = pValue ? pValue : "0";

std::ranges::transform(env, env.begin(), [](unsigned char c) { return std::tolower(c); });

Expand Down

0 comments on commit 4f73e08

Please sign in to comment.