[compiler-rt] 8cabd8f - [sanitizer] Fix compilation of the test

Vitaly Buka via llvm-commits llvm-commits at lists.llvm.org
Mon Nov 1 21:51:03 PDT 2021


Author: Vitaly Buka
Date: 2021-11-01T21:50:50-07:00
New Revision: 8cabd8f0d26c3cff03faec9b1cea974f08618d6d

URL: https://github.com/llvm/llvm-project/commit/8cabd8f0d26c3cff03faec9b1cea974f08618d6d
DIFF: https://github.com/llvm/llvm-project/commit/8cabd8f0d26c3cff03faec9b1cea974f08618d6d.diff

LOG: [sanitizer] Fix compilation of the test

Added: 
    

Modified: 
    compiler-rt/test/sanitizer_common/TestCases/Posix/posix_spawn.c

Removed: 
    


################################################################################
diff  --git a/compiler-rt/test/sanitizer_common/TestCases/Posix/posix_spawn.c b/compiler-rt/test/sanitizer_common/TestCases/Posix/posix_spawn.c
index eebcf473c63f..6bc0a00b2871 100644
--- a/compiler-rt/test/sanitizer_common/TestCases/Posix/posix_spawn.c
+++ b/compiler-rt/test/sanitizer_common/TestCases/Posix/posix_spawn.c
@@ -13,8 +13,8 @@ int main(int argc, char **argv) {
     return 0;
   }
 
-  posix_spawnattr_t attr = {};
-  posix_spawn_file_actions_t file_actions = {};
+  posix_spawnattr_t attr = {0};
+  posix_spawn_file_actions_t file_actions = {0};
 
   char *const args[] = {
       argv[0], "2", "3", "4", "2", "3", "4", "2", "3", "4",


        


More information about the llvm-commits mailing list