diff --git a/lib/include/srslte/common/buffer_pool.h b/lib/include/srslte/common/buffer_pool.h index 8a2e50b77..75c56fc0e 100644 --- a/lib/include/srslte/common/buffer_pool.h +++ b/lib/include/srslte/common/buffer_pool.h @@ -59,7 +59,7 @@ public: buffer_pool(int capacity_ = -1) { uint32_t nof_buffers = POOL_SIZE; - if (capacity > 0) { + if (capacity_ > 0) { nof_buffers = (uint32_t) capacity_; } pthread_mutex_init(&mutex, NULL);