From ecc9349e6ea6b2b779c30ef41f8f2354d1ad8566 Mon Sep 17 00:00:00 2001 From: Katharina Fey Date: Tue, 30 Aug 2016 22:10:54 +0200 Subject: Updating the examples a little --- lib/dyn_utils.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'lib/dyn_utils.c') diff --git a/lib/dyn_utils.c b/lib/dyn_utils.c index b614634..6912dd2 100644 --- a/lib/dyn_utils.c +++ b/lib/dyn_utils.c @@ -153,8 +153,7 @@ dt_err dtree_decode_json(dtree *(*data), const char *jd) dtree_malloc(&new_root); if(ctr < 0) { - parents[0] = new_root; - ctr = 0; + parents[ctr = 0] = new_root; } else { dtree_addlist(parents[ctr], &new_root); parents[++ctr] = new_root; -- cgit v1.2.3