From: Jo-Philipp Wich Date: Sun, 29 Dec 2013 21:03:51 +0000 (+0000) Subject: parser: change exitcode in case of oom errors X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=d0975f0ae61979633f4ef6537a8baa3e4c9c1fc3;p=oweals%2Fjsonpath.git parser: change exitcode in case of oom errors --- diff --git a/parser.y b/parser.y index bdfc1f2..acca9e1 100644 --- a/parser.y +++ b/parser.y @@ -186,7 +186,7 @@ _jp_alloc_op(struct jp_state *s, int type, int num, char *str, ...) if (!newop) { fprintf(stderr, "Out of memory\n"); - exit(1); + exit(127); } newop->type = type;