Set unused OCDeviceInfo struct fields to NULL
authorljsachs <larry.j.sachs@intel.com>
Mon, 8 Aug 2016 21:25:24 +0000 (14:25 -0700)
committerUze Choi <uzchoi@samsung.com>
Thu, 8 Sep 2016 04:30:32 +0000 (04:30 +0000)
commite3da625b060a84099a7ea5ac51caf2a9bf7e9387
treeceeaca89b200dfec57404d4e183e13b4d7d8cc0c
parent62690186a4c4289c98e5fbca7392ae37033def9b
Set unused OCDeviceInfo struct fields to NULL

Java DeviceInfo never uses the optional OCDeviceInfo fields,
these must be set to NULL to avoid potential corrupt data.

Change-Id: I7eda3be60d17591ab6169c0d487784c474f6325d
Signed-off-by: ljsachs <larry.j.sachs@intel.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/10165
Reviewed-by: Dave Thaler <dthaler@microsoft.com>
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Uze Choi <uzchoi@samsung.com>
Tested-by: Uze Choi <uzchoi@samsung.com>
android/android_api/base/jni/JniOcPlatform.cpp