Initialize byte_buffer metadata to avoid unintialized variable warnings.

This commit is contained in:
Pedro Alvarez 2021-02-02 12:00:49 +00:00
parent 261c2b2e03
commit 2b092ddc85
1 changed files with 1 additions and 0 deletions

View File

@ -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