Initialization bug fix

This commit is contained in:
Jack Andersen 2016-03-01 15:48:21 -10:00
parent 92d4334a74
commit 022142a9ec
1 changed files with 3 additions and 2 deletions

View File

@ -679,7 +679,8 @@ public:
}
}
}
atWarning("Unable to find field '%s'; returning 0", name);
if (name)
atWarning("Unable to find field '%s'; returning 0", name);
return RETURNTYPE();
}
@ -819,7 +820,7 @@ public:
bool finish()
{
yaml_event_t event;
yaml_event_t event = {};
if (!yaml_emitter_open(&m_emitter))
goto err;