From: Mike D. Lowis Date: Thu, 19 Mar 2015 15:59:30 +0000 (-0400) Subject: Added call to opts_reset() to opts_parse_error() X-Git-Url: https://git.mdlowis.com/?a=commitdiff_plain;h=eb15d8cce58abf6daf8d4420a08785a3b3e399bd;p=projs%2Fopts.git Added call to opts_reset() to opts_parse_error() --- diff --git a/source/opts.c b/source/opts.c index 0ca18a4..721577a 100755 --- a/source/opts.c +++ b/source/opts.c @@ -133,6 +133,7 @@ static char* opts_parse_optarg(stream_ctx_t* ctx, char* opt_name) { static void opts_parse_error(const char* msg, char* opt_name) { fprintf(stderr, "Option '%s' : %s\n", opt_name, msg); free(opt_name); + opts_reset(); exit(1); }