Bugfix: set all parsing_* variables to false when starting parsing

next
Michael Stapelberg 2014-01-04 21:23:12 +01:00
parent 4a9e283f05
commit dfd9410ab7
1 changed files with 2 additions and 0 deletions

View 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)