]> granicus.if.org Git - jq/commitdiff
Quiet a compiler warning
authorYasuhiro Matsumoto <mattn.jp@gmail.com>
Fri, 1 Apr 2016 05:53:12 +0000 (14:53 +0900)
committerNicolas Williams <nico@cryptonector.com>
Sun, 26 Feb 2017 00:49:22 +0000 (18:49 -0600)
src/jv_file.c

index 3159df533fad77c843857e367e7fc871e10f6982..a5829a8fbfe18df184e355d6bee5d27b4205bc3f 100644 (file)
@@ -8,7 +8,7 @@
 
 jv jv_load_file(const char* filename, int raw) {
   FILE* file = fopen(filename, "r");
-  struct jv_parser* parser;
+  struct jv_parser* parser = NULL;
   jv data;
   if (!file) {
     return jv_invalid_with_msg(jv_string_fmt("Could not open %s: %s",