From 1da5071d7296bb90865b020bdd71f06bb97c695a Mon Sep 17 00:00:00 2001 From: Joseph Hunkeler Date: Mon, 3 Jun 2019 22:14:28 -0400 Subject: Initialize TestExtended_t struct for each iteration --- source/session.d | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/session.d b/source/session.d index 277353f..b7e6cf2 100644 --- a/source/session.d +++ b/source/session.d @@ -154,10 +154,10 @@ Session_t getconf(string filename) { } if (root.containsKey("test_extended")) { - TestExtended_t te; data = root["test_extended"]; foreach (Node parent_1, Node child_1; data) { + TestExtended_t te; te.name = parent_1.as!string; if (child_1.containsKey("runtime")) { foreach (Node parent_2, Node child_2; child_1["runtime"]) { -- cgit