Initialize byte_buffer metadata to avoid unintialized variable warnings.

master
Pedro Alvarez 4 years ago
parent 261c2b2e03
commit 2b092ddc85

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

Loading…
Cancel
Save