summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDenis Kenzior <denkenz@gmail.com>2010-08-23 13:20:54 -0500
committerDenis Kenzior <denkenz@gmail.com>2010-08-23 14:29:22 -0500
commitcbf783c33458dfbfac4e00be562198b7ac18b0f6 (patch)
treeb901d6c913f0e1d5c1e48bea688737cdfa2d4302 /src
parentf78eaf94cfc9e89e5d5bab143febe908f9b45cab (diff)
downloadofono-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.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/sim.c b/src/sim.c
index dba1e150..839edd52 100644
--- a/src/sim.c
+++ b/src/sim.c
@@ -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)