aboutsummaryrefslogtreecommitdiffstats
path: root/libavdevice
diff options
context:
space:
mode:
authorClément Bœsch <u@pkh.me>2017-03-24 12:40:51 +0100
committerClément Bœsch <u@pkh.me>2017-03-24 12:41:31 +0100
commit761bbb06ff591343b3e1ec141bb23cb2dfe502d0 (patch)
tree0036df5f03621bbccf075cfdec908d033748f03e /libavdevice
parent3d4039f964e4814070e0f813d8e56d397bd70436 (diff)
parent2f806622e1270d3ed1d41a53049a19673dafbe70 (diff)
downloadffmpeg-761bbb06ff591343b3e1ec141bb23cb2dfe502d0.tar.gz
Merge commit '2f806622e1270d3ed1d41a53049a19673dafbe70'
* commit '2f806622e1270d3ed1d41a53049a19673dafbe70': bktr: Use memset(0) instead of zero initialization for struct sigaction Merged-by: Clément Bœsch <u@pkh.me>
Diffstat (limited to 'libavdevice')
-rw-r--r--libavdevice/bktr.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libavdevice/bktr.c b/libavdevice/bktr.c
index 2902425b4d..418247dc4e 100644
--- a/libavdevice/bktr.c
+++ b/libavdevice/bktr.c
@@ -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);