~indicator-network-developers/ofono/trunk.packaging

« back to all changes in this revision

Viewing changes to drivers/isimodem/sms.c

  • Committer: Kalle Valo
  • Date: 2011-02-21 07:46:07 UTC
  • mfrom: (2738.1.2125)
  • Revision ID: kalle.valo@canonical.com-20110221074607-u4rocuj2p75kpht9
Merge trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
215
215
        memcpy(sd->params.alpha, info->alpha, sizeof(sd->params.alpha));
216
216
 
217
217
        /*
218
 
         * Bitmask indicating absense of parameters --
 
218
         * Bitmask indicating absence of parameters --
219
219
         * If second bit is set it indicates that the SCA is absent
220
220
         */
221
221
        if (info->absent & 0x2)
248
248
                1,      /* Location, default is 1 */
249
249
        };
250
250
 
251
 
        if (cbd == NULL || sd == NULL)
 
251
        if (cbd == NULL || sd == NULL || sd->sim == NULL)
252
252
                goto error;
253
253
 
254
254
        if (g_isi_client_send(sd->sim, msg, sizeof(msg),