]> git.sur5r.net Git - i3/i3/commitdiff
Bugfix: set all parsing_* variables to false when starting parsing
authorMichael Stapelberg <michael@stapelberg.de>
Sat, 4 Jan 2014 20:23:12 +0000 (21:23 +0100)
committerMichael Stapelberg <michael@stapelberg.de>
Sat, 4 Jan 2014 20:23:12 +0000 (21:23 +0100)
src/load_layout.c

index 1e240ee655eafaee0267a5a73c9f390f2920d8f9..d0772aa398ab47a1ae2363bacf4a33dd6da3c1d7 100644 (file)
@@ -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)