summaryrefslogtreecommitdiffstats
path: root/src/cameras
diff options
context:
space:
mode:
authorMatthias Vogelgesang <matthias.vogelgesang@ipe.fzk.de>2011-03-17 16:37:24 +0100
committerMatthias Vogelgesang <matthias.vogelgesang@ipe.fzk.de>2011-03-17 16:37:24 +0100
commit16c7e3285cd16e1f05055a1cc6cc149a66d138de (patch)
treeace149bfe552c3c5dc296e3100a83834b1032b4d /src/cameras
parent6de83f98c5f4d5fb696f413aa9dbe49ab4515661 (diff)
downloaduca-16c7e3285cd16e1f05055a1cc6cc149a66d138de.tar.gz
uca-16c7e3285cd16e1f05055a1cc6cc149a66d138de.tar.bz2
uca-16c7e3285cd16e1f05055a1cc6cc149a66d138de.tar.xz
uca-16c7e3285cd16e1f05055a1cc6cc149a66d138de.zip
Fix potential segfault
Diffstat (limited to 'src/cameras')
-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 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;