projects
/
platform
/
upstream
/
iotivity.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Clean up structure allocation to follow best practices.
[platform/upstream/iotivity.git]
/
resource
/
csdk
/
connectivity
/
common
/
src
/
uarraylist.c
diff --git
a/resource/csdk/connectivity/common/src/uarraylist.c
b/resource/csdk/connectivity/common/src/uarraylist.c
index
17fce9a
..
8b175cd
100644
(file)
--- a/
resource/csdk/connectivity/common/src/uarraylist.c
+++ b/
resource/csdk/connectivity/common/src/uarraylist.c
@@
-33,7
+33,7
@@
u_arraylist_t *u_arraylist_create()
{
- u_arraylist_t *list = (u_arraylist_t *) OIC
Malloc(
sizeof(u_arraylist_t));
+ u_arraylist_t *list = (u_arraylist_t *) OIC
Calloc(1,
sizeof(u_arraylist_t));
if (!list)
{
OIC_LOG(DEBUG, TAG, "Out of memory");