Преглед изворни кода

Properly initialize the sigaction structure.

Cyril Roelandt пре 13 година
родитељ
комит
e8fefc0ee8
1 измењених фајлова са 1 додато и 0 уклоњено
  1. 1 0
      tests/main/dependency_on_destroyed_task.c

+ 1 - 0
tests/main/dependency_on_destroyed_task.c

@@ -57,6 +57,7 @@ main(void)
 
 	/* taskA should have been destroyed by now. */
 	struct sigaction sa;
+	memset(&sa, 0, sizeof(sa));
 	sa.sa_handler = abort_catcher;
 	sigaction(SIGABRT, &sa, NULL);
 	sigaction(SIGSEGV, &sa, NULL);