Minor dereference check

This commit is contained in:
Xavier Arteaga 2021-04-28 09:03:24 +02:00 committed by Xavier Arteaga
parent b6fa82bf9a
commit 71226e89df
1 changed files with 1 additions and 1 deletions

View File

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