summaryrefslogtreecommitdiff
path: root/libavdevice/bktr.c
diff options
context:
space:
mode:
Diffstat (limited to 'libavdevice/bktr.c')
-rw-r--r--libavdevice/bktr.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/libavdevice/bktr.c b/libavdevice/bktr.c
index b35ec7cc87..42ee0b317d 100644
--- a/libavdevice/bktr.c
+++ b/libavdevice/bktr.c
@@ -102,7 +102,7 @@ static av_cold int bktr_init(const char *video_device, int width, int height,
long ioctl_frequency;
char *arg;
int c;
- struct sigaction act, old;
+ struct sigaction act = { 0 }, old;
if (idev < 0 || idev > 4)
{
@@ -131,7 +131,6 @@ static av_cold int bktr_init(const char *video_device, int width, int height,
frequency = 0.0;
}
- memset(&act, 0, sizeof(act));
sigemptyset(&act.sa_mask);
act.sa_handler = catchsignal;
sigaction(SIGUSR1, &act, &old);