summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'drivers')
-rw-r--r--drivers/isimodem/sms.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/isimodem/sms.c b/drivers/isimodem/sms.c
index 1d69dbbc..73a56b99 100644
--- a/drivers/isimodem/sms.c
+++ b/drivers/isimodem/sms.c
@@ -167,7 +167,7 @@ static void isi_sca_set(struct ofono_sms *sms,
0xFD, /* Params present, only SCA */
};
- uint8_t filler[40];
+ uint8_t filler[40] = { 0 };
uint8_t bcd[12];
struct iovec iov[4] = {
@@ -182,7 +182,7 @@ static void isi_sca_set(struct ofono_sms *sms,
encode_bcd_number(sca->number, bcd + 2);
bcd[0] = 1 + (strlen(sca->number) + 1) / 2;
- bcd[1] = sca->type;
+ bcd[1] = sca->type & 0x0f;
if (g_isi_request_vmake(sd->sim, iov, 4, SIM_TIMEOUT,
sca_set_resp_cb, cbd))