Repository: incubator-mynewt-core
Updated Branches:
  refs/heads/develop d6ed9cf97 -> 79ad6d94f


oic; on oc_reset memset() g_encoder with 0.


Project: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/repo
Commit: 
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/commit/ed102256
Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/tree/ed102256
Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/diff/ed102256

Branch: refs/heads/develop
Commit: ed1022562c0150e8587309e1615acf1f4b377e82
Parents: d6ed9cf
Author: Marko Kiiskila <ma...@runtime.io>
Authored: Thu Jan 12 17:34:44 2017 -0800
Committer: Marko Kiiskila <ma...@runtime.io>
Committed: Thu Jan 12 17:34:44 2017 -0800

----------------------------------------------------------------------
 net/oic/src/api/oc_rep.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/ed102256/net/oic/src/api/oc_rep.c
----------------------------------------------------------------------
diff --git a/net/oic/src/api/oc_rep.c b/net/oic/src/api/oc_rep.c
index 67fd1f3..c7022d8 100644
--- a/net/oic/src/api/oc_rep.c
+++ b/net/oic/src/api/oc_rep.c
@@ -31,7 +31,6 @@ static uint8_t 
oc_rep_objects_area[OS_MEMPOOL_BYTES(EST_NUM_REP_OBJECTS,
       sizeof(oc_rep_t))];
 #endif
 
-static const CborEncoder g_empty;
 static struct os_mbuf *g_outm;
 CborEncoder g_encoder, root_map, links_array;
 CborError g_err;
@@ -60,7 +59,7 @@ oc_rep_finalize(void)
 void
 oc_rep_reset(void)
 {
-    g_encoder = g_empty;
+    memset(&g_encoder, 0, sizeof(g_encoder));
 }
 
 #ifdef OC_CLIENT

Reply via email to