From: Michal Michalski Date: Tue, 30 Jul 2019 14:54:12 +0000 (+0200) Subject: [common] Fix JsonToBundle implementation. X-Git-Tag: accepted/tizen/unified/20190805.104346~5 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=94820590640e16374c619f46bcdb979f831d4dc3;p=platform%2Fcore%2Fapi%2Fwebapi-plugins.git [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 --- 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);