Initialization bug fix

This commit is contained in:
Jack Andersen 2016-03-01 15:48:21 -10:00
parent 92d4334a74
commit 022142a9ec

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(); return RETURNTYPE();
} }
@ -819,7 +820,7 @@ public:
bool finish() bool finish()
{ {
yaml_event_t event; yaml_event_t event = {};
if (!yaml_emitter_open(&m_emitter)) if (!yaml_emitter_open(&m_emitter))
goto err; goto err;