Skip to content

Commit

Permalink
Merge pull request #4167 from pmatos/CheckLDPathNonEmpty
Browse files Browse the repository at this point in the history
Check that LDPath is not empty
  • Loading branch information
Sonicadvance1 authored Nov 22, 2024
2 parents 22058c0 + 13b8061 commit 60c52e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/Tools/FEXLoader/FEXLoader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +417,7 @@ int main(int argc, char** argv, char** const envp) {
FEXCore::Profiler::Init();
FEXCore::Telemetry::Initialize();

if (Program.ProgramPath.starts_with(LDPath())) {
if (!LDPath().empty() && Program.ProgramPath.starts_with(LDPath())) {
// From this point on, ProgramPath needs to not have the LDPath prefixed on to it.
auto RootFSLength = LDPath().size();
if (Program.ProgramPath.at(RootFSLength) != '/') {
Expand Down

0 comments on commit 60c52e3

Please sign in to comment.