If we use 'goto' on arduino.
We should initialize variable before the 'goto'.
Change-Id: I06bc47dcfece26ad5d5bde7e71e0f57473310d5a
Signed-off-by: leechul <chuls.lee@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/5705
Reviewed-by: dongik Lee <dongik.lee@samsung.com>
Reviewed-by: Randeep Singh <randeep.s@samsung.com>
Tested-by: Randeep Singh <randeep.s@samsung.com>
OIC_RSRC_DOXM_URI,
OIC_RSRC_PSTAT_URI
};
-
+ OicUuid_t ownerId = {.id = {0}};
+ OCStackResult res = OC_STACK_ERROR;
OicSecAcl_t* newDefaultAcl = (OicSecAcl_t*)OICCalloc(1, sizeof(OicSecAcl_t));
VERIFY_NON_NULL(TAG, newDefaultAcl, ERROR);
newDefaultAcl->recurrences = NULL;
// Device ID is the owner of this default ACL
- OicUuid_t ownerId = {.id = {0}};
- OCStackResult res = GetDoxmDeviceID(&ownerId);
+ res = GetDoxmDeviceID(&ownerId);
VERIFY_SUCCESS(TAG, OC_STACK_OK == res, FATAL);
// Owners -- Mandatory