From 16c7e3285cd16e1f05055a1cc6cc149a66d138de Mon Sep 17 00:00:00 2001 From: Matthias Vogelgesang Date: Thu, 17 Mar 2011 16:37:24 +0100 Subject: Fix potential segfault --- src/cameras/dummy.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/cameras') diff --git a/src/cameras/dummy.c b/src/cameras/dummy.c index 0177c6a..3c1964f 100644 --- a/src/cameras/dummy.c +++ b/src/cameras/dummy.c @@ -273,6 +273,7 @@ uint32_t uca_dummy_init(struct uca_camera **cam, struct uca_grabber *grabber) uca->frame_width = 320; uca->frame_height = 240; uca->current_frame = 0; + uca->grabber = NULL; struct dummy_cam *dummy_cam = (struct dummy_cam *) malloc(sizeof(struct dummy_cam)); dummy_cam->bitdepth = 8; -- cgit v1.2.3