From 9f4252d7f817dfec0194d10669dc1f0a98ecdfb8 Mon Sep 17 00:00:00 2001 From: Wolfgang Thaller Date: Sat, 11 May 2024 01:14:14 +0200 Subject: [PATCH] Elf2Mac: treat an empty RETRO68_REAL_LD environment variable as unset --- Elf2Mac/Elf2Mac.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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";