Kaynağa Gözat

qcacmn: Initialize the local variable do_pm_get to false

Initialize the local variable do_pm_get to false to avoid using the
uninitialized variable potentially.

Change-Id: Ie45126b05afee1d4e5bb061189846bc8e301c2a6
CRs-fixed: 2215809
Tiger Yu 7 yıl önce
ebeveyn
işleme
054a6a4fd4
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  1. 1 1
      htc/htc_send.c

+ 1 - 1
htc/htc_send.c

@@ -872,7 +872,7 @@ static void get_htc_send_packets(HTC_TARGET *target,
 	HTC_PACKET *pPacket;
 	HTC_PACKET_QUEUE *tx_queue;
 	HTC_PACKET_QUEUE pm_queue;
-	bool do_pm_get;
+	bool do_pm_get = false;
 
 	/*** NOTE : the TX lock is held when this function is called ***/
 	AR_DEBUG_PRINTF(ATH_DEBUG_SEND,