aboutsummaryrefslogtreecommitdiffstats
path: root/libng/plugins/drv0-v4l2.c
diff options
context:
space:
mode:
Diffstat (limited to 'libng/plugins/drv0-v4l2.c')
-rw-r--r--libng/plugins/drv0-v4l2.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libng/plugins/drv0-v4l2.c b/libng/plugins/drv0-v4l2.c
index 3954123..b8eb3f4 100644
--- a/libng/plugins/drv0-v4l2.c
+++ b/libng/plugins/drv0-v4l2.c
@@ -342,6 +342,7 @@ v4l2_add_attr(struct v4l2_handle *h, struct v4l2_queryctrl *ctl,
h->attr[h->nattr].choices = v4l2_menu(h->fd, ctl);
break;
default:
+ memset(h->attr+h->nattr,0,sizeof(struct ng_attribute)*2);
return;
}
} else {

Privacy Policy