summaryrefslogtreecommitdiff
path: root/yavta.c
diff options
context:
space:
mode:
Diffstat (limited to 'yavta.c')
-rw-r--r--yavta.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/yavta.c b/yavta.c
index 3f4e381..2d3b2d0 100644
--- a/yavta.c
+++ b/yavta.c
@@ -345,7 +345,6 @@ static bool video_has_valid_buf_type(struct device *dev)
static void video_init(struct device *dev)
{
- memset(dev, 0, sizeof *dev);
dev->fd = -1;
dev->memtype = V4L2_MEMORY_MMAP;
dev->buffers = NULL;
@@ -1910,7 +1909,7 @@ static struct option opts[] = {
int main(int argc, char *argv[])
{
struct sched_param sched;
- struct device dev;
+ struct device dev = { 0 };
int ret;
/* Options parsings */