From 71226e89df26388b67f787629d14efbe2843e88d Mon Sep 17 00:00:00 2001 From: Xavier Arteaga Date: Wed, 28 Apr 2021 09:03:24 +0200 Subject: [PATCH] Minor dereference check --- lib/src/phy/phch/sci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/src/phy/phch/sci.c b/lib/src/phy/phch/sci.c index 9303c9f38..305d78166 100644 --- a/lib/src/phy/phch/sci.c +++ b/lib/src/phy/phch/sci.c @@ -20,7 +20,7 @@ int srsran_sci_init(srsran_sci_t* q, const srsran_sl_comm_resource_pool_t* sl_comm_resource_pool) { int ret = SRSRAN_ERROR_INVALID_INPUTS; - if (q != NULL) { + if (q != NULL && cell != NULL && sl_comm_resource_pool != NULL) { ret = SRSRAN_ERROR; bzero(q, sizeof(srsran_sci_t));