diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2013-12-29 21:03:51 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2013-12-29 21:03:51 +0000 |
commit | d0975f0ae61979633f4ef6537a8baa3e4c9c1fc3 (patch) | |
tree | 153419f4e5bb44aade5c44c646c1af480c8cdbd8 | |
parent | de125c0ea812207cbe1dc5ae6d81c1e4336bca81 (diff) | |
download | jsonpath-d0975f0ae61979633f4ef6537a8baa3e4c9c1fc3.tar.gz |
parser: change exitcode in case of oom errors
-rw-r--r-- | parser.y | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |