From e00a0710a5fe6d1cdcdf8a4e6eee4592b01c0785 Mon Sep 17 00:00:00 2001
From: "Ruslan (The BadAss SysMan) Laishev" <ruslan.laishev@demlabs.net>
Date: Wed, 18 May 2022 22:52:43 +0300
Subject: [PATCH] [*] Nano update of SLIST API

---
 dap-sdk/core/include/dap_list.h | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/dap-sdk/core/include/dap_list.h b/dap-sdk/core/include/dap_list.h
index f8bac72633..67cab4c15e 100755
--- a/dap-sdk/core/include/dap_list.h
+++ b/dap-sdk/core/include/dap_list.h
@@ -104,7 +104,8 @@ dap_slist_elm_t *l_elm;
         a_slist->tail = NULL;                                               /* Reset tail to NULL */
 
     *a_data = l_elm->data;
-    *a_datasz = l_elm->datasz;
+    if ( a_datasz )
+        *a_datasz = l_elm->datasz;
 
     DAP_FREE(l_elm);                                                        /* Release memory has been allocated for the queue's element */
 
-- 
GitLab