Fixed pointer-type arrays with NULL values
authorErich Keane <erich.keane@intel.com>
Thu, 10 Sep 2015 17:24:53 +0000 (10:24 -0700)
committerJon A. Cruz <jonc@osg.samsung.com>
Thu, 10 Sep 2015 21:39:10 +0000 (21:39 +0000)
commitd585714f20c1abcef197feb81be13b6ee23e44d5
tree6e679bf46319635fb7d87e7230c99871bcdc1f72
parenta5dd4e5a9c99933a775dc0b8b1c7ea59b08a554b
Fixed pointer-type arrays with NULL values

NULL values for OCRepresentation and string types in an array would
cause a variety of seg-faults.  This patch corrects the behavior to
allow for NULLs in these arrays.

This is necessary because the CSDK enforces rectangular arrays, but
the C++ stack does NOT, so it compiles with those dimensions.

Change-Id: Ie0ddc5faea980ccb37f0ac8f6b73027b965b7257
Signed-off-by: Erich Keane <erich.keane@intel.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/2452
Reviewed-by: Sachin Agrawal <sachin.agrawal@intel.com>
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Jon A. Cruz <jonc@osg.samsung.com>
resource/csdk/stack/src/ocpayloadconvert.c
resource/csdk/stack/src/ocpayloadparse.c
resource/src/OCRepresentation.cpp