From 5d33419e7c1364ebad3dbae53453d434e78540dd Mon Sep 17 00:00:00 2001
From: "Dmitriy A. Gerasimov" <dmitriy.gerasimov@demlabs.net>
Date: Tue, 27 Oct 2020 19:00:38 +0700
Subject: [PATCH] [*] Set zero to keepalive packet

---
 CMakeLists.txt                         | 2 +-
 dap-sdk/net/stream/stream/dap_stream.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index ba6e5613ad..dafd0e12a8 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -2,7 +2,7 @@ project(cellframe-sdk C)
 cmake_minimum_required(VERSION 2.8)
 
 set(CMAKE_C_STANDARD 11)
-set(CELLFRAME_SDK_NATIVE_VERSION "2.6-23")
+set(CELLFRAME_SDK_NATIVE_VERSION "2.6-24")
 add_definitions ("-DCELLFRAME_SDK_VERSION=\"${CELLFRAME_SDK_NATIVE_VERSION}\"")
 
 set(DAPSDK_MODULES "")
diff --git a/dap-sdk/net/stream/stream/dap_stream.c b/dap-sdk/net/stream/stream/dap_stream.c
index ebe00c1c5a..f9e254a586 100644
--- a/dap-sdk/net/stream/stream/dap_stream.c
+++ b/dap-sdk/net/stream/stream/dap_stream.c
@@ -790,7 +790,7 @@ static void s_keepalive_cb( void )
 {
   dap_stream_t  *l_stream, *tmp;
   pthread_mutex_lock( &s_mutex_keepalive_list );
-  stream_pkt_hdr_t l_pkt = {};
+  stream_pkt_hdr_t l_pkt = {0};
   l_pkt.type = STREAM_PKT_TYPE_KEEPALIVE;
   memcpy(l_pkt.sig, c_dap_stream_sig, sizeof(l_pkt.sig));
   DL_FOREACH_SAFE( s_stream_keepalive_list, l_stream, tmp ) {
-- 
GitLab