char *ipAddress = NULL;
int presenceSubscribe = 0;
int multicastPresenceSubscribe = 0;
+ size_t addressLen = 0;
if (responseInfo->result != CA_SUCCESS)
{
goto exit;
}
- size_t addressLen = strlen(endPoint->addressInfo.IP.ipAddress);
+ addressLen = strlen(endPoint->addressInfo.IP.ipAddress);
ipAddress = (char *) OCMalloc(addressLen + 1);
if(NULL == ipAddress)
{
return OC_STACK_INVALID_PARAM;
}
+ char* strTokPtr = NULL;
char * leftToken = NULL;
char * tempURI = (char *) OCMalloc(strlen(uri) + 1);
if(!tempURI)
goto exit;
}
strcpy(tempURI, uri);
- char* strTokPtr = NULL;
+ strTokPtr = NULL;
leftToken = strtok_r(tempURI, "?", &strTokPtr);
//TODO-CA: This could be simplified. Clean up required.