Fix defects detected by static code analyzer
authorJaewook Jung <jw0213.jung@samsung.com>
Mon, 15 May 2017 11:39:16 +0000 (20:39 +0900)
committerUze Choi <uzchoi@samsung.com>
Tue, 16 May 2017 00:37:36 +0000 (00:37 +0000)
commit749b3cb1ed1ab0b682330cd11061dada0f38d9ba
tree535f000a022caf9c9b91527d5d9741959d73e209
parenta29be3965488be312721b9d78788e094ab355c54
Fix defects detected by static code analyzer

- 'addr' of CAEndpoint is a char array so the address of the array cannot
  be null.
- 'requestData' is not dynamic-allocated memory.

Change-Id: Ibcb9f5011b01f19e4624b4d71dcb0181637480b3
Signed-off-by: Jaewook Jung <jw0213.jung@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/19913
Tested-by: jenkins-iotivity <jenkins@iotivity.org>
Reviewed-by: Dan Mihai <Daniel.Mihai@microsoft.com>
Reviewed-by: Uze Choi <uzchoi@samsung.com>
resource/csdk/stack/src/ocendpoint.c
resource/csdk/stack/src/ocstack.c