fixed sample app defects detected by static analysis
authorhyuna0213.jo <hyuna0213.jo@samsung.com>
Fri, 4 Dec 2015 05:29:57 +0000 (05:29 +0000)
committerJon A. Cruz <jonc@osg.samsung.com>
Sat, 12 Dec 2015 01:23:05 +0000 (01:23 +0000)
commitc9b7b399b2e1d21681bc589ab8d35462937972e8
tree990c47d83fda51e005c0dab84d893d297bde5c97
parent5970c949c49f09d0c8c667cc3ae1ca3e25d795da
fixed sample app defects detected by static analysis

fixed issues in CA sample app reported by static analysis tool

Change-Id: I1eaf0c6bedb0a86e8da7edf3301dcd06cb1ddfbf
Signed-off-by: hyuna0213.jo <hyuna0213.jo@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/4401
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Jaehong Jo <jaehong.jo@samsung.com>
Reviewed-by: Jon A. Cruz <jonc@osg.samsung.com>
(cherry picked from commit 391185941134848f6670f57dee2f458d60d49579)
Reviewed-on: https://gerrit.iotivity.org/gerrit/4537
resource/csdk/connectivity/samples/android/casample/sampleService/src/main/jni/ResourceModel.c
resource/csdk/connectivity/samples/linux/sample_main.c