stack: Fixes cppcheck issue in ocserverrequest
authorRavi Nanjundappa <nravi.n@samsung.com>
Wed, 1 Jul 2015 13:44:42 +0000 (19:14 +0530)
committerErich Keane <erich.keane@intel.com>
Fri, 3 Jul 2015 15:26:11 +0000 (15:26 +0000)
commit2fac07c1c2b53ae616c54c00f39995d66b94a929
treea92b2808f784d47030c991a6b58296ad5e43e056
parent89ee981e3dfa17ff15cb9182b280f4e0c9f5b769
stack: Fixes cppcheck issue in ocserverrequest

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

Dereferencing of ehResponse is done after NULL check.

Change-Id: I9cc20ce2386b5bdb08c4d9f9dbd2d143040f9a0f
Signed-off-by: Ravi Nanjundappa <nravi.n@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/1509
Reviewed-by: Erich Keane <erich.keane@intel.com>
Tested-by: Erich Keane <erich.keane@intel.com>
resource/csdk/stack/src/ocserverrequest.c