[PATCH] Add missing if braces in decode_chan_alloc

Gregor Gregoric gregor at gmx.se
Mon Oct 1 17:48:11 UTC 2012


---
 src/tetra_mac_pdu.c |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/src/tetra_mac_pdu.c b/src/tetra_mac_pdu.c
index 882a0e7..70b5ec9 100644
--- a/src/tetra_mac_pdu.c
+++ b/src/tetra_mac_pdu.c
@@ -93,8 +93,10 @@ static int decode_chan_alloc(struct tetra_chan_alloc_decoded *cad, const uint8_t
 		cad->ext_carr.reverse_oper =	bits_to_uint(cur, 1); cur += 1;
 	}
 	cad->monit_pattern =	bits_to_uint(cur, 2); cur += 2;
-	if (cad->monit_pattern == 0)
-		cad->monit_patt_f18 =	bits_to_uint(cur, 2); cur += 2;
+	if (cad->monit_pattern == 0) {
+		cad->monit_patt_f18 =	bits_to_uint(cur, 2);
+		cur += 2;
+	}
 	if (cad->ul_dl == 0) {
 		cad->aug.ul_dl_ass =	bits_to_uint(cur, 2); cur += 2;
 		cad->aug.bandwidth =	bits_to_uint(cur, 3); cur += 3;
-- 
1.7.4.1


--========GMX151621349116554584744--




More information about the tetra mailing list