diff options
author | Brendan Macmillan <melbourne.research@gmail.com> | 2013-05-17 03:03:42 +1000 |
---|---|---|
committer | Brendan Macmillan <melbourne.research@gmail.com> | 2013-05-29 15:05:40 +1000 |
commit | 6e373942e52ae13742bc1dd75f645244b805670c (patch) | |
tree | 90a7dff05b37dee36515f7600a1c9dc0128bf69a /execute.c | |
parent | f0b982795c19ff6517e564f4757791df2228db4c (diff) | |
download | jq-6e373942e52ae13742bc1dd75f645244b805670c.tar.gz |
Load library from ~/.jq
Diffstat (limited to 'execute.c')
-rw-r--r-- | execute.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -611,8 +611,10 @@ struct bytecode* jq_compile_args(const char* str, jv args) { jv_free(name); } jv_free(args); - program = builtins_bind(program); - nerrors = block_compile(program, &locations, &bc); + nerrors = builtins_bind(&program); + if (nerrors == 0) { + nerrors = block_compile(program, &locations, &bc); + } } if (nerrors) { fprintf(stderr, "%d compile %s\n", nerrors, nerrors > 1 ? "errors" : "error"); |