From c91791683e9872ce6b6d95355d146c326c35587d Mon Sep 17 00:00:00 2001 From: Jan-Piet Mens Date: Tue, 25 Aug 2015 19:09:14 +0200 Subject: [PATCH] missing arg --- storage.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/storage.c b/storage.c index 7a3f741..c2f1e5c 100644 --- a/storage.c +++ b/storage.c @@ -104,7 +104,7 @@ void append_device_details(JsonNode *userlist, char *user, char *device) card = json_mkobject(); if (json_copy_from_file(card, path) == TRUE) { - json_copy_to_object(last, card); + json_copy_to_object(last, card, FALSE); } else { /* No CARD? Discontinue */ json_delete(card); @@ -121,7 +121,7 @@ void append_device_details(JsonNode *userlist, char *user, char *device) geo = json_mkobject(); if (json_copy_from_file(geo, path) == TRUE) { - json_copy_to_object(last, geo); + json_copy_to_object(last, geo, FALSE); } else { json_delete(geo); } @@ -130,6 +130,10 @@ void append_device_details(JsonNode *userlist, char *user, char *device) } +/* + * Return an array of users gleaned from LAST with merged details + */ + JsonNode *last_users() { JsonNode *obj = json_mkobject();