diff options
Diffstat (limited to 'main.c')
-rw-r--r-- | main.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -223,6 +223,7 @@ static int parse_format(struct v4l2_mbus_framefmt *format, const char *p, char * height = strtoul(p, &end, 10); *endp = end; + memset(format, 0, sizeof(*format)); format->width = width; format->height = height; format->code = mbus_formats[i].code; |