From 0eadb6a3993c3bd1221697404fa5a7905cf3250a Mon Sep 17 00:00:00 2001 From: kmook Date: Tue, 11 Oct 2016 19:07:31 +0900 Subject: [PATCH] Added missing initialize on remote app control service Change-Id: I785c03ab743993d867bff296d6d0266edeef6878 Signed-off-by: kmook --- daemon/service_provider/RemoteAppControlServiceProvider.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/daemon/service_provider/RemoteAppControlServiceProvider.cpp b/daemon/service_provider/RemoteAppControlServiceProvider.cpp index f0468ae..01834df 100755 --- a/daemon/service_provider/RemoteAppControlServiceProvider.cpp +++ b/daemon/service_provider/RemoteAppControlServiceProvider.cpp @@ -682,7 +682,6 @@ int conv::RemoteAppControlServiceProvider::publishRequest(Request* requestObj) memset(appControl, 0, app_control.size() + 1); strncpy(appControl, app_control.c_str(), app_control.size()+1); - iotcon_attributes_add_str(attributes, CONV_JSON_APP_CONTROL, appControl); iotcon_attributes_add_int(attributes, CONV_JSON_REPLY, reply); iotcon_attributes_add_str(attributes, CONV_JSON_REQUEST_TYPE, (char *)CONV_LAUNCH_REQUEST); @@ -798,6 +797,7 @@ int conv::RemoteAppControlServiceProvider::loadServiceInfo(Request* requestObj) svcInfo->iotconInfoObj.address = deviceAddress; svcInfo->iotconInfoObj.uri = CONV_URI_REMOTE_APP_CONTROL; svcInfo->iotconInfoObj.resourceType = __resourceType; + svcInfo->iotconInfoObj.iotconResourceHandle = NULL; //save service info clientObj->addServiceInfo(__type, deviceId, (IServiceInfo*)svcInfo); -- 2.7.4