parser: change exitcode in case of oom errors
authorJo-Philipp Wich <jow@openwrt.org>
Sun, 29 Dec 2013 21:03:51 +0000 (21:03 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Sun, 29 Dec 2013 21:03:51 +0000 (21:03 +0000)
parser.y

index bdfc1f24a22f8408a7f9513be433ea1de017e6dc..acca9e12425b2f78f5768b97b8a26a78c33fb024 100644 (file)
--- 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;