fix errors flagged by clang static analyzer

builtin.c: bug - free of uninitialized jv
compile.c: missing assertion
jq_test.c: buggy logic / unreachable code
jv.c: missing assertion
jv_alloc.c: false positive - intentional read of uninitialized memory
jv_file.c: dead code
This commit is contained in:
David Tolnay authored and Nicolas Williams committed 2015-06-20 16:08:56 -05:00
1 parent 7811ef1e17
commit 4a316fbb5a
6 files changed
+12 -9

No files matched your search

-1
View File
@@ -33,7 +33,6 @@ jv jv_load_file(const char* filename, int raw) {
if (jv_invalid_has_msg(jv_copy(value))) {
jv_free(data);
data = value;
value = jv_invalid();
break;
}
}