Index: compiler-rt/trunk/lib/sanitizer_common/sanitizer_rtems.cc =================================================================== --- compiler-rt/trunk/lib/sanitizer_common/sanitizer_rtems.cc +++ compiler-rt/trunk/lib/sanitizer_common/sanitizer_rtems.cc @@ -239,8 +239,11 @@ return true; } -char **GetArgv() { return NULL; } -const char *GetEnv(const char *name) { return NULL; } +char **GetArgv() { return nullptr; } + +const char *GetEnv(const char *name) { + return getenv(name); +} uptr ReadBinaryName(/*out*/char *buf, uptr buf_len) { internal_strncpy(buf, "StubBinaryName", buf_len);