Added missing initialize on remote app control service 87/91787/1 accepted/tizen/3.0/common/20161114.105717 accepted/tizen/3.0/mobile/20161028.143058 accepted/tizen/3.0/tv/20161028.143421 accepted/tizen/3.0/wearable/20161028.150756 accepted/tizen/common/20161012.154401 accepted/tizen/mobile/20161012.065815 accepted/tizen/tv/20161012.065821 accepted/tizen/wearable/20161012.065826 submit/tizen/20161012.030112 submit/tizen_3.0/20161028.062323 submit/tizen_3.0/20161028.092423 submit/tizen_3.0_common/20161104.104000
authorkmook <kmook.choi@samsung.com>
Tue, 11 Oct 2016 10:07:31 +0000 (19:07 +0900)
committerkmook <kmook.choi@samsung.com>
Tue, 11 Oct 2016 10:07:31 +0000 (19:07 +0900)
Change-Id: I785c03ab743993d867bff296d6d0266edeef6878
Signed-off-by: kmook <kmook.choi@samsung.com>
daemon/service_provider/RemoteAppControlServiceProvider.cpp

index f0468ae..01834df 100755 (executable)
@@ -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);