resource-directory: Fix uninitialised value
authorPhilippe Coval <philippe.coval@osg.samsung.com>
Thu, 15 Jun 2017 09:13:46 +0000 (11:13 +0200)
committerDan Mihai <Daniel.Mihai@microsoft.com>
Wed, 19 Jul 2017 19:12:24 +0000 (19:12 +0000)
commit423eb833e348fe94b98793da7e226afd28ab0236
tree4cdec5e7ee907f745c6c1971b2a6971b8ee919b6
parent4965054665a3fa5f41c1b6b48dbaadf5ba84e947
resource-directory: Fix uninitialised value

resource-directory: Fix condition on uninitialised value

Issue was observed using valgrind on GNU/Linux:

https://build.iotivity.org/ci/job/iotivity-verify-unit_tests/16067/valgrindResult/pid=13739,0x2/

Bug: https://jira.iotivity.org/browse/IOT-2279
Change-Id: Ide0a2cca989466fefd4a13b41cc81bf38fa8afff
Signed-off-by: Philippe Coval <philippe.coval@osg.samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/20829
Reviewed-by: Habib Virji <habib.virji@samsung.com>
(cherry picked from commit bb85bde7d79e49580fe0c90dbcf0746f585c0ad4)
Reviewed-on: https://gerrit.iotivity.org/gerrit/21387
Tested-by: jenkins-iotivity <jenkins@iotivity.org>
Reviewed-by: Dan Mihai <Daniel.Mihai@microsoft.com>
resource/csdk/resource-directory/src/rd_client.c