Skip to content

Commit

Permalink
Set default error code to -4 in main(), fixes jqlang#1142
Browse files Browse the repository at this point in the history
  • Loading branch information
ryo1kato committed May 6, 2016
1 parent 512736f commit 4ee1c40
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ static void debug_cb(void *data, jv input) {

int main(int argc, char* argv[]) {
jq_state *jq = NULL;
int ret = JQ_OK;
int ret = JQ_OK_NO_OUTPUT;
int compiled = 0;
int parser_flags = 0;
int nfiles = 0;
Expand Down

0 comments on commit 4ee1c40

Please sign in to comment.