commit 8e00c569af2a926eb12b805dd4966732f4639a24
parent 02cc2520b742838f2cbb83298fce2c435748a42c
Author: Vincent Forest <vincent.forest@meso-star.com>
Date: Thu, 1 Jul 2021 13:28:34 +0200
Fix of input arguments checks of scam_create_pinhole
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/scam_pinhole.c b/src/scam_pinhole.c
@@ -87,7 +87,7 @@ scam_create_pinhole
struct scam* cam = NULL;
res_T res = RES_OK;
- if(!out_cam) {
+ if(!args || !out_cam) {
res = RES_BAD_ARG;
goto error;
}