[sanitizer] Fix compilation of the test
authorVitaly Buka <vitalybuka@google.com>
Tue, 2 Nov 2021 04:50:21 +0000 (21:50 -0700)
committerVitaly Buka <vitalybuka@google.com>
Tue, 2 Nov 2021 04:50:50 +0000 (21:50 -0700)
compiler-rt/test/sanitizer_common/TestCases/Posix/posix_spawn.c

index eebcf47..6bc0a00 100644 (file)
@@ -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",