json: init int err to 0

This commit is contained in:
Alfred E. Heggestad 2016-06-24 08:13:36 +00:00
parent 107323352d
commit c5b31b7c9f

View file

@ -227,7 +227,7 @@ static int object_start(const struct pl *pl_name, unsigned idx,
struct json_handlers *h)
{
char *name = NULL;
int err;
int err = 0;
if (pl_name->p) {
@ -249,7 +249,7 @@ static int array_start(const struct pl *pl_name, unsigned idx,
struct json_handlers *h)
{
char *name = NULL;
int err;
int err = 0;
if (pl_name->p) {