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

This commit is contained in:
Michael Stapelberg 2014-01-04 21:23:12 +01:00
parent 4a9e283f05
commit dfd9410ab7

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)