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); bzero(buffer, SRSLTE_MAX_BUFFER_SIZE_BYTES);
msg = &buffer[SRSLTE_BUFFER_HEADER_OFFSET]; msg = &buffer[SRSLTE_BUFFER_HEADER_OFFSET];
next = NULL; next = NULL;
md = {};
#ifdef SRSLTE_BUFFER_POOL_LOG_ENABLED #ifdef SRSLTE_BUFFER_POOL_LOG_ENABLED
bzero(debug_name, SRSLTE_BUFFER_POOL_LOG_NAME_LEN); bzero(debug_name, SRSLTE_BUFFER_POOL_LOG_NAME_LEN);
#endif #endif

Loading…
Cancel
Save