From 3d12d16c29395f41af727a5c5819c3ea0eb85e23 Mon Sep 17 00:00:00 2001
From: Dong Anyuan <donganyuan@cn.fujitsu.com>
Date: Thu, 20 Jun 2019 12:41:05 +0900
Subject: [PATCH] Fix Coverity Scan CID 21906 (Using uninitialized value
 pcfich_bt[2 * i].)

---
 openair1/PHY/LTE_TRANSPORT/pcfich.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/openair1/PHY/LTE_TRANSPORT/pcfich.c b/openair1/PHY/LTE_TRANSPORT/pcfich.c
index 18a156c3fb..3646732ce3 100644
--- a/openair1/PHY/LTE_TRANSPORT/pcfich.c
+++ b/openair1/PHY/LTE_TRANSPORT/pcfich.c
@@ -83,6 +83,8 @@ void generate_pcfich(uint8_t num_pdcch_symbols,
 	subframe,num_pdcch_symbols,amp,frame_parms->nb_antenna_ports_eNB,frame_parms->Ncp);
 #endif
 
+  memset(pcfich_bt, 0, sizeof(pcfich_bt));
+
   // scrambling
   if ((num_pdcch_symbols>0) && (num_pdcch_symbols<4))
     pcfich_scrambling(frame_parms,subframe,pcfich_b[num_pdcch_symbols-1],pcfich_bt);
-- 
GitLab