Bugfix: set all parsing_* variables to false when starting parsing
This commit is contained in:
parent
4a9e283f05
commit
dfd9410ab7
@ -426,9 +426,11 @@ void tree_append_json(const char *filename) {
|
|||||||
yajl_status stat;
|
yajl_status stat;
|
||||||
json_node = focused;
|
json_node = focused;
|
||||||
to_focus = NULL;
|
to_focus = NULL;
|
||||||
|
parsing_swallows = false;
|
||||||
parsing_rect = false;
|
parsing_rect = false;
|
||||||
parsing_window_rect = false;
|
parsing_window_rect = false;
|
||||||
parsing_geometry = false;
|
parsing_geometry = false;
|
||||||
|
parsing_focus = false;
|
||||||
setlocale(LC_NUMERIC, "C");
|
setlocale(LC_NUMERIC, "C");
|
||||||
stat = yajl_parse(hand, (const unsigned char*)buf, n);
|
stat = yajl_parse(hand, (const unsigned char*)buf, n);
|
||||||
if (stat != yajl_status_ok)
|
if (stat != yajl_status_ok)
|
||||||
|
Loading…
Reference in New Issue
Block a user