From d382a87a7a5889c894d49ec84ef2aedabe23129f Mon Sep 17 00:00:00 2001 From: Sami Vaarala Date: Mon, 20 Mar 2017 17:15:12 +0200 Subject: [PATCH] Uniform exit code (1) for 'duk' errors --- examples/cmdline/duk_cmdline.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/cmdline/duk_cmdline.c b/examples/cmdline/duk_cmdline.c index 31fd07f2..9f3e4def 100644 --- a/examples/cmdline/duk_cmdline.c +++ b/examples/cmdline/duk_cmdline.c @@ -1123,7 +1123,7 @@ static duk_context *create_duktape_heap(int alloc_provider, int debugger, int aj if (!ctx) { fprintf(stderr, "Failed to create Duktape heap\n"); fflush(stderr); - exit(-1); + exit(1); } #if defined(DUK_CMDLINE_AJSHEAP)