diff options
author | Katharina Fey <kookie@spacekookie.de> | 2016-08-30 22:10:54 +0200 |
---|---|---|
committer | Katharina Fey <kookie@spacekookie.de> | 2019-06-04 20:21:03 +0200 |
commit | ecc9349e6ea6b2b779c30ef41f8f2354d1ad8566 (patch) | |
tree | c2abb9aba0e13ba5271608a5e1a185d52c3e6497 /lib/dyn_utils.c | |
parent | 60441671a612552d47b23841b44135593806468a (diff) |
Updating the examples a little
Diffstat (limited to 'lib/dyn_utils.c')
-rw-r--r-- | lib/dyn_utils.c | 3 |
1 files changed, 1 insertions, 2 deletions
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; |