Fixed EntityHandlerRequest initialization to match other uses
authorErich Keane <erich.keane@intel.com>
Fri, 5 Dec 2014 19:53:08 +0000 (11:53 -0800)
committerErich 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

index 2738c96..1f136cb 100644 (file)
@@ -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)
     {