From: Michael Stapelberg Date: Sat, 4 Jan 2014 20:23:12 +0000 (+0100) Subject: Bugfix: set all parsing_* variables to false when starting parsing X-Git-Tag: 4.8~162 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=dfd9410ab7b669e873047342858ac2607aa7d560;p=i3%2Fi3 Bugfix: set all parsing_* variables to false when starting parsing --- 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)