From dfd9410ab7b669e873047342858ac2607aa7d560 Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Sat, 4 Jan 2014 21:23:12 +0100 Subject: [PATCH] Bugfix: set all parsing_* variables to false when starting parsing --- src/load_layout.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/load_layout.c b/src/load_layout.c index 1e240ee6..d0772aa3 100644 --- a/src/load_layout.c +++ b/src/load_layout.c @@ -426,9 +426,11 @@ void tree_append_json(const char *filename) { yajl_status stat; json_node = focused; to_focus = NULL; + parsing_swallows = false; parsing_rect = false; parsing_window_rect = false; parsing_geometry = false; + parsing_focus = false; setlocale(LC_NUMERIC, "C"); stat = yajl_parse(hand, (const unsigned char*)buf, n); if (stat != yajl_status_ok) -- 2.39.5