Skip to content

Commit

Permalink
fix minor issue with jstree
Browse files Browse the repository at this point in the history
  • Loading branch information
samuel cheng committed Sep 10, 2021
1 parent d93402e commit 89866ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion shared/json/jstree_read.h
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ static inline int _do_jstree_read(int argc, _tree_node *input, _tree_node **outp
if(sscanf(argv, "[%d]", &iter)){
// printf("jumping to the %dth node\n", iter);
rnode = next_node(rnode, iter);
if(rnode <= 0){
if(rnode == 0){
//printf("->[%d]:N/A", iter);
break;
}else if(rnode->data.type == JSMN_STRING){
Expand Down

0 comments on commit 89866ee

Please sign in to comment.