Browse Source

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

1.4.2
Thomas Schmitt 5 years ago
parent
commit
1602c51a26
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      test/poll.c

+ 2
- 0
test/poll.c View File

@ -7,6 +7,7 @@
#include <unistd.h>
#include <stdio.h>
#include <signal.h>
#include <string.h>
#include <assert.h>
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++) {


Loading…
Cancel
Save