From 1602c51a267b7e0ed3b7042e0555e0d27d202765 Mon Sep 17 00:00:00 2001 From: Thomas Schmitt Date: Fri, 23 Oct 2015 13:40:05 +0000 Subject: [PATCH] Removed surplus code statement which used uninitialized variable. Coverity CID 21843. --- test/poll.c | 2 ++ 1 file changed, 2 insertions(+) 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++) {