star-stl

Load STereo Lithography (StL) file format
git clone git://git.meso-star.fr/star-stl.git
Log | Files | Refs | README | LICENSE

commit 36d7cbbb85a8d8d98e25398f054d90d8d8759470
parent 5ef9edf540a8bbdfebe4313ab5050b862dd38b20
Author: Vincent Forest <vincent.forest@meso-star.com>
Date:   Fri, 11 Apr 2025 16:39:08 +0200

Fix the behaviour of the -h option in the sstl utility

Without an input file (this is the usual way of using the -h option), an
error was reported, indicating that the type of StL to be loaded was not
specified. This is despite the fact that no file will be loaded when the
short help is queried.

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

diff --git a/src/sstl_main.c b/src/sstl_main.c @@ -62,7 +62,7 @@ args_init(struct args* args, int argc, char** argv) case 'h': usage(stdout); args->quit = 1; - break; + goto exit; case 'v': args->verbose += (args->verbose < 3); break; default: res = RES_BAD_ARG; break; }