summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRomain Forlot <romain.forlot@iot.bzh>2017-03-02 23:16:56 +0100
committerRomain Forlot <romain.forlot@iot.bzh>2017-03-02 23:16:56 +0100
commit0961202bff0758ffdccf7bcd0dc9b721e20b2edb (patch)
treee4fad9de0f826d9f1e1c1c433c661576470ad8a2
parent8dac8942dcae2bb35212aa4ff5488bd8dcda1fad (diff)
Fix: no json data for subcribed events
Change-Id: I9c260559d28bfe4bf26a77403254cd46a84a7d6f Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
-rw-r--r--src/openxc-utils.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/openxc-utils.cpp b/src/openxc-utils.cpp
index c996176..40745a0 100644
--- a/src/openxc-utils.cpp
+++ b/src/openxc-utils.cpp
@@ -125,7 +125,6 @@ bool jsonify_simple(const openxc_SimpleMessage& s_msg, json_object* json)
{
if(s_msg.has_name)
{
- json = json_object_new_object();
json_object_object_add(json, "name", json_object_new_string(s_msg.name));
jsonify_DynamicField(s_msg.value, json);
return true;