Skip to content

Commit

Permalink
Fixed empty tree bug
Browse files Browse the repository at this point in the history
(cherry picked from commit b36da5e)
  • Loading branch information
vladpaiu committed Jun 23, 2014
1 parent f259215 commit e5c6bbf
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions modules/mi_json/http_fnc.c
Expand Up @@ -596,6 +596,9 @@ static int mi_json_recur_write_tree(struct page_buf* pb,
struct mi_node *tree, unsigned int flags)
{
struct mi_node* t;
if (!tree)
return pb->status;


if (flags & MI_IS_ARRAY) {
LM_DBG("Treat as an array\n");
Expand Down

0 comments on commit e5c6bbf

Please sign in to comment.