projects
/
jansson.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
json_load_file: Initialize the error struct properly
[jansson.git]
/
src
/
load.c
diff --git
a/src/load.c
b/src/load.c
index
f004525
..
53241ff
100644
(file)
--- a/
src/load.c
+++ b/
src/load.c
@@
-864,6
+864,8
@@
json_t *json_load_file(const char *path, json_error_t *error)
json_t *result;
FILE *fp;
+ error_init(error);
+
fp = fopen(path, "r");
if(!fp)
{