diff --git a/test/poll.c b/test/poll.c index 4026a84..660f384 100644 --- a/test/poll.c +++ b/test/poll.c @@ -7,6 +7,7 @@ #include #include #include +#include #include static struct burn_drive_info *drives; @@ -62,6 +63,7 @@ int main() return 1; } + memset(&newact, 0, sizeof(newact)); newact.sa_handler = catch_int; sigaction(SIGINT, &newact, &oldact); for (i = 0; i < (int) n_drives; i++) {