summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDenis Kenzior <denkenz@gmail.com>2010-08-31 18:01:23 -0500
committerDenis Kenzior <denkenz@gmail.com>2010-09-01 12:06:56 -0500
commit0cf73b73eb379711612c8dec6151f91dc92c0211 (patch)
treed134d2b179c866dcf4f0fba79c07e8f6ebb78c42 /src
parent2a2fd1d03607bce62cec7c266fa82c56e76ac36f (diff)
downloadofono-0cf73b73eb379711612c8dec6151f91dc92c0211.tar.bz2
sim: tweak efimg length
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;
}
}