summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/sim.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/sim.c b/src/sim.c
index ff559a9d..12515e6b 100644
--- a/src/sim.c
+++ b/src/sim.c
@@ -89,7 +89,7 @@ struct ofono_sim {
unsigned char *efli;
unsigned char efli_length;
unsigned char *efimg;
- int efimg_length;
+ unsigned short efimg_length;
enum ofono_sim_cphs_phase cphs_phase;
unsigned char cphs_service_table[2];
struct ofono_watchlist *state_watches;
@@ -2085,6 +2085,7 @@ static void sim_free_state(struct ofono_sim *sim)
if (sim->efimg) {
g_free(sim->efimg);
sim->efimg = NULL;
+ sim->efimg_length = 0;
}
}