From: Denis Kenzior Date: Fri, 18 Dec 2009 01:29:51 +0000 (-0600) Subject: Style: Fixup style issues X-Git-Tag: 0.15~12 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0bd6739766d2c49b657f0969238c81eaf47972b8;p=platform%2Fupstream%2Fofono.git Style: Fixup style issues --- diff --git a/src/sim.c b/src/sim.c index a854316..d1ea88a 100644 --- a/src/sim.c +++ b/src/sim.c @@ -1738,7 +1738,8 @@ void __ofono_cbs_sim_download(struct ofono_sim *sim, if (sim->ready != TRUE) return; - if (!sim->driver->envelope) + + if (sim->driver->envelope == NULL) return; tlv[0] = 0xd2; /* Cell Broadcast Download */ @@ -1749,6 +1750,7 @@ void __ofono_cbs_sim_download(struct ofono_sim *sim, tlv[5] = 0x81; /* UICC */ tlv[6] = 0x8c; /* Cell Broadcast page */ tlv[7] = pdu_len; + memcpy(tlv + 8, pdu, pdu_len); sim->driver->envelope(sim, pdu_len + 8, tlv, sim_cb_download_cb, sim);