From cbf783c33458dfbfac4e00be562198b7ac18b0f6 Mon Sep 17 00:00:00 2001 From: Denis Kenzior Date: Mon, 23 Aug 2010 13:20:54 -0500 Subject: [PATCH] sim: Reset mnc_length when removing SIM In case the next SIM doesn't have it or something else weird happens. --- src/sim.c | 2 ++ 1 file changed, 2 insertions(+) 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)