diff options
-rw-r--r-- | compiler-rt/test/sanitizer_common/TestCases/Posix/getpw_getgr.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/compiler-rt/test/sanitizer_common/TestCases/Posix/getpw_getgr.cc b/compiler-rt/test/sanitizer_common/TestCases/Posix/getpw_getgr.cc index e10f38488a8..b4bc9b43d0d 100644 --- a/compiler-rt/test/sanitizer_common/TestCases/Posix/getpw_getgr.cc +++ b/compiler-rt/test/sanitizer_common/TestCases/Posix/getpw_getgr.cc @@ -14,6 +14,8 @@ std::string any_group; const int N = 123456; void Check(const char *str) { + if (!str) + return; assert(strlen(str) != N); } |