Commit 761bbb06 authored by Clément Bœsch's avatar Clément Bœsch

Merge commit '2f806622'

* commit '2f806622':
  bktr: Use memset(0) instead of zero initialization for struct sigaction
Merged-by: 's avatarClément Bœsch <u@pkh.me>
parents 3d4039f9 2f806622
......@@ -103,7 +103,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 = { {0} }, old;
struct sigaction act, old;
int ret;
char errbuf[128];
......@@ -134,6 +134,7 @@ 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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment