Fixed KW Warnings based on using uninitialized values
The values adjusted here were improperly initialized, so these
fixes ensure that they are only used when properly initialized.
Note that in the second case, we were checking for NULL, but
dereferencing anyway. This adds an else case to avoid that.
Change-Id: I34cb292267f6ba21d3849fa5ad06b89eca02b557
Signed-off-by: Erich Keane <erich.keane@intel.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/519
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Mandeep Shetty <mandeep.shetty@intel.com>
Reviewed-by: Sashi Penta <sashi.kumar.penta@intel.com>