Fix segmentation fault from SIM reading on Calypso modem

This commit is contained in:
Marcel Holtmann 2009-09-25 14:07:33 -07:00
parent a63508a7db
commit 0e9f9d8bc8
1 changed files with 3 additions and 0 deletions

View File

@ -221,6 +221,9 @@ gboolean sim_spdi_lookup(struct sim_spdi *spdi,
{
struct spdi_operator spdi_op;
if (!spdi)
return FALSE;
g_strlcpy(spdi_op.mcc, mcc, sizeof(spdi_op.mcc));
g_strlcpy(spdi_op.mnc, mnc, sizeof(spdi_op.mnc));