things-manager: Fix cppcheck issues in TMSampleApp for tizen
authorRavi Nanjundappa <nravi.n@samsung.com>
Fri, 3 Jul 2015 11:11:27 +0000 (16:41 +0530)
committerUze Choi <uzchoi@samsung.com>
Wed, 8 Jul 2015 05:38:40 +0000 (05:38 +0000)
commit2784539a6a1ce58ef4ec828f8a344fb7ee1ac40a
tree18238834c8d0975dc624164279ef3eaf3ef1a46a
parentd9ab1897d95acb250c31c77718e67946f0e60a5d
things-manager: Fix cppcheck issues in TMSampleApp for tizen

This patch fixes the below issues
reported by cppcheck tool in TMSampleApp dir for tizen.
"(error) Possible null pointer dereference: popup_fields ...."

It is invliad to set the member of popup_field to NULL if
popup_field itself is NULL.
Removed such statements from the code.

Change-Id: Ie1457662cb2727e5bab5e21886db6bece2f356a7
Signed-off-by: Ravi Nanjundappa <nravi.n@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/1511
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Harish Marappa <h.marappa@samsung.com>
Reviewed-by: Uze Choi <uzchoi@samsung.com>
service/things-manager/sampleapp/tizen/TMSampleApp/src/configuration.cpp
service/things-manager/sampleapp/tizen/TMSampleApp/src/group.cpp