diff options
author | Denis Kenzior <denkenz@gmail.com> | 2010-08-23 13:20:54 -0500 |
---|---|---|
committer | Denis Kenzior <denkenz@gmail.com> | 2010-08-23 14:29:22 -0500 |
commit | cbf783c33458dfbfac4e00be562198b7ac18b0f6 (patch) | |
tree | b901d6c913f0e1d5c1e48bea688737cdfa2d4302 /src | |
parent | f78eaf94cfc9e89e5d5bab143febe908f9b45cab (diff) | |
download | ofono-cbf783c33458dfbfac4e00be562198b7ac18b0f6.tar.bz2 |
sim: Reset mnc_length when removing SIM
In case the next SIM doesn't have it or something else weird happens.
Diffstat (limited to 'src')
-rw-r--r-- | src/sim.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -2013,6 +2013,8 @@ static void sim_free_state(struct ofono_sim *sim) sim->efest = NULL; sim->efest_length = 0; } + + sim->mnc_length = 0; } void ofono_sim_inserted_notify(struct ofono_sim *sim, ofono_bool_t inserted) |