diff options
author | Matthias Vogelgesang <matthias.vogelgesang@ipe.fzk.de> | 2011-03-17 16:37:24 +0100 |
---|---|---|
committer | Matthias Vogelgesang <matthias.vogelgesang@ipe.fzk.de> | 2011-03-17 16:37:24 +0100 |
commit | 16c7e3285cd16e1f05055a1cc6cc149a66d138de (patch) | |
tree | ace149bfe552c3c5dc296e3100a83834b1032b4d /src | |
parent | 6de83f98c5f4d5fb696f413aa9dbe49ab4515661 (diff) | |
download | libuca-16c7e3285cd16e1f05055a1cc6cc149a66d138de.tar.gz libuca-16c7e3285cd16e1f05055a1cc6cc149a66d138de.tar.bz2 libuca-16c7e3285cd16e1f05055a1cc6cc149a66d138de.tar.xz libuca-16c7e3285cd16e1f05055a1cc6cc149a66d138de.zip |
Fix potential segfault
Diffstat (limited to 'src')
-rw-r--r-- | src/cameras/dummy.c | 1 |
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; |