1
0
mirror of https://github.com/stedolan/jq.git synced 2024-05-11 05:55:39 +00:00

don't need to check for NULL there

This commit is contained in:
David R. MacIver
2013-12-08 23:52:07 +00:00
parent f4ae5c883b
commit 7b671b95d2

4
main.c
View File

@ -331,12 +331,8 @@ int main(int argc, char* argv[]) {
} }
} }
out: out:
if(input_filenames != NULL){
jv_mem_free(input_filenames); jv_mem_free(input_filenames);
}
if(jq != NULL){
jq_teardown(&jq); jq_teardown(&jq);
}
if (ret >= 10 && ret <= 11 && !(options & EXIT_STATUS)) if (ret >= 10 && ret <= 11 && !(options & EXIT_STATUS))
return 0; return 0;
return ret; return ret;