diff options
author | Petteri Tikander <petteri.tikander@ixonos.com> | 2010-10-21 17:58:13 +0300 |
---|---|---|
committer | Denis Kenzior <denkenz@gmail.com> | 2010-10-22 11:23:08 -0500 |
commit | 7de5e48df88a2c1ae633a595c35f7b2ec4182f8d (patch) | |
tree | 3e7cbb3fee33eb95401e2ce42cb1f9c76913c80e /src/sim.c | |
parent | d82600c8930aca8eb8b15722720bc140649eb6d0 (diff) | |
download | ofono-7de5e48df88a2c1ae633a595c35f7b2ec4182f8d.tar.bz2 |
sim: check existence of imsi-code
For instance: when handling sim_get_properties
in PRE_SIM-state imsi is not received/stored.
Diffstat (limited to 'src/sim.c')
-rw-r--r-- | src/sim.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -314,7 +314,7 @@ static DBusMessage *sim_get_properties(DBusConnection *conn, ofono_dbus_dict_append(&dict, "FixedDialing", DBUS_TYPE_BOOLEAN, &sim->fixed_dialing); - if (sim->mnc_length) { + if (sim->mnc_length && sim->imsi) { char mcc[OFONO_MAX_MCC_LENGTH + 1]; char mnc[OFONO_MAX_MNC_LENGTH + 1]; const char *str; |