diff --git a/Elf2Mac/Elf2Mac.cc b/Elf2Mac/Elf2Mac.cc index cd47115bb8..76b81a76a9 100644 --- a/Elf2Mac/Elf2Mac.cc +++ b/Elf2Mac/Elf2Mac.cc @@ -91,7 +91,7 @@ int main(int argc, char *argv[]) std::copy(argv + 1, argv+argc, std::back_inserter(args)); realLdPath = string(argv[0]) + ".real"; - if (char *path = getenv("RETRO68_REAL_LD")) + if (char *path = getenv("RETRO68_REAL_LD"); path && path[0]) realLdPath = path; string outputFile = "a.out";