From 406445e7694222e16da863908d93c87c27778ec3 Mon Sep 17 00:00:00 2001 From: Matthias Vogelgesang Date: Thu, 17 Mar 2011 16:57:44 +0100 Subject: Fix another potential segfault bug --- 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 1a7b275..53351f8 100644 --- a/src/cameras/dummy.c +++ b/src/cameras/dummy.c @@ -276,6 +276,7 @@ uint32_t uca_dummy_init(struct uca_camera **cam, struct uca_grabber *grabber) uca->frame_height = 240; uca->current_frame = 0; uca->grabber = NULL; + uca->callback = NULL; struct dummy_cam *dummy_cam = (struct dummy_cam *) malloc(sizeof(struct dummy_cam)); dummy_cam->bitdepth = 8; -- cgit v1.2.3