From 2b092ddc856018341a6934c20518710ced6fb325 Mon Sep 17 00:00:00 2001 From: Pedro Alvarez Date: Tue, 2 Feb 2021 12:00:49 +0000 Subject: [PATCH] Initialize byte_buffer metadata to avoid unintialized variable warnings. --- lib/include/srslte/common/common.h | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/include/srslte/common/common.h b/lib/include/srslte/common/common.h index 3ce6d5819..b7cd3c424 100644 --- a/lib/include/srslte/common/common.h +++ b/lib/include/srslte/common/common.h @@ -110,6 +110,7 @@ public: bzero(buffer, SRSLTE_MAX_BUFFER_SIZE_BYTES); msg = &buffer[SRSLTE_BUFFER_HEADER_OFFSET]; next = NULL; + md = {}; #ifdef SRSLTE_BUFFER_POOL_LOG_ENABLED bzero(debug_name, SRSLTE_BUFFER_POOL_LOG_NAME_LEN); #endif