From aace6fa482e78170c590d5370ddffcf782422306 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. --- libburn/trunk/test/poll.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libburn/trunk/test/poll.c b/libburn/trunk/test/poll.c index 4026a849..660f384f 100644 --- a/libburn/trunk/test/poll.c +++ b/libburn/trunk/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++) {