From 493706eab173e1382400922a179fc4fbccaefd6f Mon Sep 17 00:00:00 2001 From: Ismael Gomez Date: Fri, 6 Jul 2018 16:20:15 +0200 Subject: [PATCH] Incorrect default value in buffer pool --- lib/include/srslte/common/buffer_pool.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);