diff options
Diffstat (limited to 'src/cameras/pco.c')
-rw-r--r-- | src/cameras/pco.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/cameras/pco.c b/src/cameras/pco.c index ccf7d90..cb286e8 100644 --- a/src/cameras/pco.c +++ b/src/cameras/pco.c @@ -239,6 +239,9 @@ uint32_t uca_pco_grab(struct uca_camera_t *cam, char *buffer) uint32_t uca_pco_init(struct uca_camera_t **cam, struct uca_grabber_t *grabber) { + if (grabber == NULL) + return UCA_ERR_CAM_NOT_FOUND; + struct pco_edge_t *pco = pco_init(); if (pco == NULL) { |