Commit 18e3b8fe authored by Oleksandr Dmytrenko's avatar Oleksandr Dmytrenko

cloud build fix: crosses initialialization

crosses initializations in cloud fix

Change-Id: Id0ed5f31aa192ad385be4cb039f82f3b5be308a2
Signed-off-by: default avatarOleksandr Dmytrenko <o.dmytrenko@samsung.com>
parent e0d2b88e
......@@ -293,6 +293,7 @@ OCStackResult OCCloudAclIndividualAclUpdate(void *ctx,
OCRepPayload **helperPayload2 = NULL;
cloudAce_t *ace = NULL;
size_t acllist_count = 0;
OCCallbackData cbData;
VERIFY_NON_NULL_RET(cloudUri, TAG, "NULL endpoint", OC_STACK_INVALID_PARAM);
VERIFY_NON_NULL_RET(aclId, TAG, "NULL input param", OC_STACK_INVALID_PARAM);
......@@ -409,7 +410,6 @@ OCStackResult OCCloudAclIndividualAclUpdate(void *ctx,
OCRepPayloadSetPropObjectArray(payload, OC_RSRVD_ACCESS_CONTROL_LIST,
(const OCRepPayload **)helperPayload, dimensions);
OCCallbackData cbData;
fillCallbackData(&cbData, ctx, callback, NULL, NULL);
OIC_LOG(DEBUG, TAG, "Next payload created:");
......@@ -448,6 +448,7 @@ OCStackResult OCCloudAclIndividualAceUpdate(void *ctx,
OCRepPayload **helperPayload = NULL;
OCRepPayload **helperPayload2 = NULL;
size_t acllist_count;
OCCallbackData cbData;
VERIFY_NON_NULL_RET(cloudUri, TAG, "NULL endpoint", OC_STACK_INVALID_PARAM);
VERIFY_NON_NULL_RET(aclId, TAG, "NULL input param", OC_STACK_INVALID_PARAM);
......@@ -557,7 +558,6 @@ OCStackResult OCCloudAclIndividualAceUpdate(void *ctx,
OCRepPayloadSetPropObjectArray(payload, OC_RSRVD_ACCESS_CONTROL_LIST,
(const OCRepPayload **)helperPayload, dimensions);
OCCallbackData cbData;
fillCallbackData(&cbData, ctx, callback, NULL, NULL);
OIC_LOG(DEBUG, TAG, "Next payload created:");
......
......@@ -385,6 +385,7 @@ OCStackResult OCCloudCertificateIssueRequest(void *ctx,
OCStackResult ret = OC_STACK_OK;
char uri[MAX_URI_QUERY] = { 0 };
OCRepPayload *payload = NULL;
OCCallbackData cbData;
OIC_LOG_V(DEBUG, TAG, "IN: %s", __func__);
......@@ -437,7 +438,6 @@ OCStackResult OCCloudCertificateIssueRequest(void *ctx,
snprintf(uri, MAX_URI_QUERY, "%s%s", cloudUri, OC_RSRVD_PROV_CERT_URI);
OIC_LOG_V(DEBUG, TAG, "Certificate Request Query: %s", uri);
OCCallbackData cbData;
fillCallbackData(&cbData, ctx, callback, HandleCertificateIssueRequest, NULL);
ret = OCDoResource(NULL, OC_REST_POST, uri, NULL,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment