From 94820590640e16374c619f46bcdb979f831d4dc3 Mon Sep 17 00:00:00 2001 From: Michal Michalski Date: Tue, 30 Jul 2019 16:54:12 +0200 Subject: [PATCH] [common] Fix JsonToBundle implementation. Broken implemenation has slipped through unspotted. While testing previous change in JsonToBundle the API installed on device probably has not been updated. [Verification] UTs were failing and now they are passing. Change-Id: I6c871ff03a79417a630da1db50f2f7300fca9ca8 Signed-off-by: Michal Michalski --- src/common/json-utils.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/json-utils.cc b/src/common/json-utils.cc index b58486a..8d52373 100644 --- a/src/common/json-utils.cc +++ b/src/common/json-utils.cc @@ -179,7 +179,7 @@ PlatformResult JsonToBundle(const picojson::value& json, bundle** data) { } for (const auto& property : json.get()) { - int ret = BundleAdd(property.first, property.second, *data); + int ret = BundleAdd(property.first, property.second, temp); if (BUNDLE_ERROR_NONE != ret) { LoggerE("BundleAdd failed with error message: %s", get_error_message(ret)); bundle_free(temp); -- 2.7.4