summaryrefslogtreecommitdiff
path: root/jv_file.c
diff options
context:
space:
mode:
authorNicolas Williams <nico@cryptonector.com>2014-06-04 18:17:27 -0500
committerNicolas Williams <nico@cryptonector.com>2014-06-04 18:35:30 -0500
commitd1ea3ab89d704039b9b1f9b88ec251eb0c803516 (patch)
tree4921449ffa2a653f97866dcdc3926776cc719c0a /jv_file.c
parentae625d0de74c2966e627e3d5e498ab72529c4251 (diff)
downloadjq-d1ea3ab89d704039b9b1f9b88ec251eb0c803516.tar.gz
Add flags argument to jv_parser_new()
For extensibility. We might add streaming parser options, even binary JSON encoding options.
Diffstat (limited to 'jv_file.c')
-rw-r--r--jv_file.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/jv_file.c b/jv_file.c
index 54ed36b..a633160 100644
--- a/jv_file.c
+++ b/jv_file.c
@@ -18,7 +18,7 @@ jv jv_load_file(const char* filename, int raw) {
data = jv_string("");
} else {
data = jv_array();
- parser = jv_parser_new();
+ parser = jv_parser_new(0);
}
while (!feof(file) && !ferror(file)) {
char buf[4096];