star-cad

Geometric operators for computer-aided design
git clone git://git.meso-star.fr/star-cad.git
Log | Files | Refs | README | LICENSE

commit 852637a5b180f6c10703e83109019827b0a2400c
parent 179f51f928e62e2c3a7cf4012b347648d990f1c3
Author: Christophe Coustet <christophe.coustet@meso-star.com>
Date:   Fri,  9 Sep 2022 11:31:42 +0200

Fix invalid arg detection

Diffstat:
Msrc/scad_geometry.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/scad_geometry.c b/src/scad_geometry.c @@ -1008,7 +1008,7 @@ scad_geometry_copy struct scad_geometry* copy = NULL; res_T res = RES_OK; - if(!geom) { + if(!geom || !out_geometry) { res = RES_BAD_ARG; goto error; }