diff options
author | Matthias Vogelgesang <matthias.vogelgesang@ipe.fzk.de> | 2011-03-18 11:10:00 +0100 |
---|---|---|
committer | Matthias Vogelgesang <matthias.vogelgesang@ipe.fzk.de> | 2011-03-18 11:10:00 +0100 |
commit | ef5dfb7febd8881158e493451a27a2500ced14cb (patch) | |
tree | 142d3fce467aa076a4f38437058a5e93f1fecdb7 /src/cameras/pf.c | |
parent | 750080d576dadb9c29ac5f565b8e16c8b9aa4a7d (diff) | |
download | uca-ef5dfb7febd8881158e493451a27a2500ced14cb.tar.gz uca-ef5dfb7febd8881158e493451a27a2500ced14cb.tar.bz2 uca-ef5dfb7febd8881158e493451a27a2500ced14cb.tar.xz uca-ef5dfb7febd8881158e493451a27a2500ced14cb.zip |
Initialize all camera fields with NULL to catch errors early on
Diffstat (limited to 'src/cameras/pf.c')
-rw-r--r-- | src/cameras/pf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cameras/pf.c b/src/cameras/pf.c index ab6a490..5ae35ab 100644 --- a/src/cameras/pf.c +++ b/src/cameras/pf.c @@ -208,7 +208,7 @@ uint32_t uca_pf_init(struct uca_camera **cam, struct uca_grabber *grabber) /* We could check if a higher baud rate is supported, but... forget about * it. We don't need high speed configuration. */ - struct uca_camera *uca = (struct uca_camera *) malloc(sizeof(struct uca_camera)); + struct uca_camera *uca = uca_cam_new(); uca->grabber = grabber; uca->grabber->asynchronous = true; |