Removed surplus code statement which used uninitialized variable. Coverity CID 21843.

This commit is contained in:
Thomas Schmitt 2015-10-23 13:40:05 +00:00
parent d762c6b9dd
commit 1602c51a26
1 changed files with 2 additions and 0 deletions

View File

@ -7,6 +7,7 @@
#include <unistd.h> #include <unistd.h>
#include <stdio.h> #include <stdio.h>
#include <signal.h> #include <signal.h>
#include <string.h>
#include <assert.h> #include <assert.h>
static struct burn_drive_info *drives; static struct burn_drive_info *drives;
@ -62,6 +63,7 @@ int main()
return 1; return 1;
} }
memset(&newact, 0, sizeof(newact));
newact.sa_handler = catch_int; newact.sa_handler = catch_int;
sigaction(SIGINT, &newact, &oldact); sigaction(SIGINT, &newact, &oldact);
for (i = 0; i < (int) n_drives; i++) { for (i = 0; i < (int) n_drives; i++) {