Fixed InProcClientWrapper's option parameter to OCDoResource
authorErich Keane <erich.keane@intel.com>
Mon, 16 Mar 2015 22:03:29 +0000 (15:03 -0700)
committerSashi Penta <sashi.kumar.penta@intel.com>
Wed, 18 Mar 2015 16:26:56 +0000 (16:26 +0000)
commit3fceb5300b094ec50ab264de910c4d177b622005
tree9f158d24af9e13ca1e00607c47a30a63b5d5d21d
parente5cb9198c4df08ac42f1fef459d55b859c8cd0ef
Fixed InProcClientWrapper's option parameter to OCDoResource

InProcClientWrapper was calling OCDoResource with the option
parameter set to a valid value despite the numOptions being 0.
This commit ensures that it will send a nullptr in that event,
preventing confusion during debugging in the future.

Change-Id: Ided75e1c90a971ea205e9e04bf170a5144e8206d
Signed-off-by: Erich Keane <erich.keane@intel.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/485
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Sudarshan Prasad <sudarshan.prasad@intel.com>
Reviewed-by: Sashi Penta <sashi.kumar.penta@intel.com>
resource/include/InProcClientWrapper.h
resource/src/InProcClientWrapper.cpp