summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMatthias Vogelgesang <matthias.vogelgesang@ipe.fzk.de>2011-03-17 16:57:44 +0100
committerMatthias Vogelgesang <matthias.vogelgesang@ipe.fzk.de>2011-03-17 16:57:44 +0100
commit406445e7694222e16da863908d93c87c27778ec3 (patch)
tree21edd12e190db28e5510d40bf7ed3ad8fcd19969 /src
parentaec30c85d341e12987db743d880349dbb419eec6 (diff)
downloaduca-406445e7694222e16da863908d93c87c27778ec3.tar.gz
uca-406445e7694222e16da863908d93c87c27778ec3.tar.bz2
uca-406445e7694222e16da863908d93c87c27778ec3.tar.xz
uca-406445e7694222e16da863908d93c87c27778ec3.zip
Fix another potential segfault bug
Diffstat (limited to 'src')
-rw-r--r--src/cameras/dummy.c1
1 files changed, 1 insertions, 0 deletions
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;