commit | 60b6eb84f416b8c145fa0670cae7d21b1015b2ab | [log] [tgz] |
---|---|---|
author | r.xiao <r.xiao@mobiletek.cn> | Wed Nov 13 00:24:46 2024 -0800 |
committer | r.xiao <r.xiao@mobiletek.cn> | Wed Nov 13 00:24:46 2024 -0800 |
tree | d2cc23dbd81483b20836ab4797e4d1f81b4ae521 | |
parent | 61eedc906c86758cd82cfbc7bdb02ac5c1b4232d [diff] [blame] |
修复PDU编码输出短信出现乱码情况 Change-Id: I60107ff12ce66ae681b879b9515a74f2b047713e
diff --git a/mbtk/libmbtk_lib/ril/mbtk_pdu_sms.c b/mbtk/libmbtk_lib/ril/mbtk_pdu_sms.c index c00a924..b2a05b0 100755 --- a/mbtk/libmbtk_lib/ril/mbtk_pdu_sms.c +++ b/mbtk/libmbtk_lib/ril/mbtk_pdu_sms.c
@@ -897,7 +897,7 @@ } char *UDEncoding(char *UD, struct UDHS *udhs, enum EnumDCS DCS) { - int UDHL; + int UDHL = 0; char *result; @@ -911,7 +911,7 @@ body = UDCEncoding(UD, &UDCL, UDHL, DCS); // 用户数据区长度 - int UDL; + int UDL = 0; if (DCS == BIT7) { // 7-Bit编码 UDL = (UDHL * 8 + 6) / 7 + UDCL;