soft-sensor-manager: Fixes cppcheck issue for arduino SampleApp
authorRavi Nanjundappa <nravi.n@samsung.com>
Fri, 3 Jul 2015 11:06:22 +0000 (16:36 +0530)
committerUze Choi <uzchoi@samsung.com>
Wed, 8 Jul 2015 01:30:03 +0000 (01:30 +0000)
commitd9ab1897d95acb250c31c77718e67946f0e60a5d
tree9ce3eb30b4bc1b4b7c50ba7ced68a9284703a8f6
parentb782625fb93dbdb5a0e9dd1afae4d12d34296b27
soft-sensor-manager: Fixes cppcheck issue for arduino SampleApp

This patch fixes the the below issue reported by cppcheck tool
in stack dir: "(error) Possible null pointer dereference:
entityHandlerRequest - otherwise it is redundant to check if
entityHandlerRequest is null at line 114"

Dereferencing of entityHandlerRequest->resJSONPayload is done if
flag includes OC_REQUEST_FLAG.

The patch also includes removal of some unnecessary blank lines

Change-Id: I8d9d7c40df5602b9d55de8d948871a2c485798a2
Signed-off-by: Ravi Nanjundappa <nravi.n@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/1510
Reviewed-by: Erich Keane <erich.keane@intel.com>
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Minji Park <minjii.park@samsung.com>
Reviewed-by: Uze Choi <uzchoi@samsung.com>
service/soft-sensor-manager/SampleApp/arduino/Reference_Thing/src/trackee.cpp