Cleaned up some static initialization and casting errors in one function.
authorJoseph Morrow <joseph.l.morrow@intel.com>
Tue, 24 Mar 2015 22:47:43 +0000 (18:47 -0400)
committerErich Keane <erich.keane@intel.com>
Tue, 24 Mar 2015 23:46:51 +0000 (23:46 +0000)
commit9de024b3632fa6660ae14593c240e22ff96d29b2
tree30b228223fe792ecdd188e30a28e4aa8e3de5b22
parent8b62aff1ce32afd5961107bb42b53750aa4bab41
Cleaned up some static initialization and casting errors in one function.

Cleaned up function to ensure that different scopes within the stack don't
act negatively on eachother by malloc'ing space for each caller to
obtain their own copy of the address.

Change-Id: I7ebdfde0fb6edbbe57f0d52b541fc252e7509b17
Signed-off-by: Joseph Morrow <joseph.l.morrow@intel.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/541
Reviewed-by: Erich Keane <erich.keane@intel.com>
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
resource/csdk/stack/src/ocstack.c