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

Merge pull request #154 from nicowilliams/no-fopen-re

Remove accidentally introduced use of fopen "e"
This commit is contained in:
Stephen Dolan
2013-06-17 15:34:01 -07:00

View File

@ -13,7 +13,7 @@ int jq_testsuite(int argc, char* argv[]) {
FILE *testdata = stdin;
jv_test();
if (argc > 2) {
testdata = fopen(argv[2], "re");
testdata = fopen(argv[2], "r");
if (!testdata) {
perror("fopen");
exit(1);