json: init int err to 0
This commit is contained in:
parent
107323352d
commit
c5b31b7c9f
1 changed files with 2 additions and 2 deletions
|
@ -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) {
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue