瀏覽代碼

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);