BUGFIX wrong variable initialized
diff --git a/src/netopeerguid.c b/src/netopeerguid.c
index 43d8857..f2bbab0 100644
--- a/src/netopeerguid.c
+++ b/src/netopeerguid.c
@@ -1454,9 +1454,9 @@
{
struct nc_rpc* rpc;
struct session_with_mutex *locked_session;
- json_object *res = NULL, *data_cjson = NULL;
+ json_object *res = NULL, *data_cjson;
enum json_tokener_error tok_err;
- char *data_json;
+ char *data_json = NULL;
struct lyd_node *data, *sibling, *next;
/* tell server to show all elements even if they have default values */