diff options
author | Sakari Ailus <sakari.ailus@iki.fi> | 2018-11-22 17:29:56 +0200 |
---|---|---|
committer | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2019-02-17 14:07:09 +0200 |
commit | 6fcc59050fc03afde84a73082bed9b891a35708a (patch) | |
tree | 7a109015e430c18bb2e1c2d9d390eae77b9d7ecd | |
parent | 7546d205cb96f7cac702881284119eb9875e3809 (diff) |
Zero dev in main()
This is necessary since video_open() may not be always called soon.
Signed-off-by: Sakari Ailus <sakari.ailus@iki.fi>
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
-rw-r--r-- | yavta.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -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 */ |