projects
/
platform
/
upstream
/
iotivity.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
de31af5
)
Fixed EntityHandlerRequest initialization to match other uses
author
Erich Keane
<erich.keane@intel.com>
Fri, 5 Dec 2014 19:53:08 +0000
(11:53 -0800)
committer
Erich Keane
<erich.keane@intel.com>
Fri, 5 Dec 2014 19:53:08 +0000
(11:53 -0800)
Everywhere else we are using initializers rather than memcpy, so
this fix makes this one instance match the rest of the initializers.
Change-Id: I7ccb433ed58abbfb25ada17214dbaf5819d210fa
Signed-off-by: Erich Keane <erich.keane@intel.com>
resource/csdk/stack/src/ocstack.c
patch
|
blob
|
history
diff --git
a/resource/csdk/stack/src/ocstack.c
b/resource/csdk/stack/src/ocstack.c
index
2738c96
..
1f136cb
100644
(file)
--- a/
resource/csdk/stack/src/ocstack.c
+++ b/
resource/csdk/stack/src/ocstack.c
@@
-86,8
+86,7
@@
OCStackResult OCStackFeedBack(OCCoAPToken * token, uint8_t status)
{
OCStackResult result = OC_STACK_ERROR;
ResourceObserver * observer = NULL;
- OCEntityHandlerRequest ehRequest;
- memset(&ehRequest, 0, sizeof(OCEntityHandlerRequest));
+ OCEntityHandlerRequest ehRequest = {0};
switch(status)
{