Zero structures before filling them
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Wed, 19 May 2010 21:31:39 +0000 (23:31 +0200)
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Wed, 19 May 2010 21:31:39 +0000 (23:31 +0200)
commit3a78a901bbc07d9283a9b80e22be4e9500697745
treecf48ae5482b99841091e8892512678a58374d45b
parent5154f4d6f89e9853b768fc0ec470fa4dff5f890a
Zero structures before filling them

The parse_format function fills a v4l2_mbus_framefmt structure but
doesn't zero it beforehand. This results in some fields being
uninitialized. Fix this.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
main.c