You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by GitBox <gi...@apache.org> on 2021/07/12 19:55:07 UTC

[GitHub] [mynewt-nimble] sjanc commented on a change in pull request #998: nimble/porting: Make os_mbuf/os_mpool work on 64-bit.

sjanc commented on a change in pull request #998:
URL: https://github.com/apache/mynewt-nimble/pull/998#discussion_r667912101



##########
File path: porting/nimble/src/os_mempool.c
##########
@@ -38,7 +38,8 @@
 #define OS_MEMPOOL_TRUE_BLOCK_SIZE(mp) OS_MEM_TRUE_BLOCK_SIZE(mp->mp_block_size)
 #endif
 
-STAILQ_HEAD(, os_mempool) g_os_mempool_list;
+STAILQ_HEAD(, os_mempool) g_os_mempool_list =
+    STAILQ_HEAD_INITIALIZER(g_os_mempool_list);

Review comment:
       Could you explain why is this needed?  (AFAIR initially it was like that to allow multiple initialization while executing tests)




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@mynewt.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org