From 022142a9eca85eb34ea2306c589993b73646c121 Mon Sep 17 00:00:00 2001 From: Jack Andersen Date: Tue, 1 Mar 2016 15:48:21 -1000 Subject: [PATCH] Initialization bug fix --- include/Athena/DNAYaml.hpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/include/Athena/DNAYaml.hpp b/include/Athena/DNAYaml.hpp index 4a6ad3a..74aa216 100644 --- a/include/Athena/DNAYaml.hpp +++ b/include/Athena/DNAYaml.hpp @@ -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;