json_load_file: Initialize the error struct properly
authorPetri Lehtinen <petri@digip.org>
Tue, 27 Oct 2009 15:46:57 +0000 (17:46 +0200)
committerPetri Lehtinen <petri@digip.org>
Tue, 27 Oct 2009 15:56:02 +0000 (17:56 +0200)
commitf243930b6843295b81a4e4025497e40f19ff53ac
treee0264f44ed83067650f8bf5811c346cc164af0c2
parent15d992cb6a6eeab8c2f4c7d00fa06a52fca62287
json_load_file: Initialize the error struct properly

Failing to do this has the effect that the error message is not
returned when the input file cannot be opened (e.g. if it doesn't
exist).

Thanks to Martin Vopatek for reporting.
src/load.c
test/.gitignore
test/testprogs/Makefile.am
test/testprogs/test_load.c [new file with mode: 0644]