summaryrefslogtreecommitdiffstats
path: root/src/network.c
diff options
context:
space:
mode:
authorDenis Kenzior <denkenz@gmail.com>2009-07-15 12:09:22 -0500
committerDenis Kenzior <denkenz@gmail.com>2009-07-15 12:10:02 -0500
commitf574b5a0757a16eea9f032c80195323f8b91896f (patch)
tree1c6e7c5867158022dd5c6cd1ecb6d4a6d77be0f2 /src/network.c
parent05f7912308ec2e0837b0456c8649eda8e14fa014 (diff)
downloadofono-f574b5a0757a16eea9f032c80195323f8b91896f.tar.bz2
Fix uninitialized warning
Diffstat (limited to 'src/network.c')
-rw-r--r--src/network.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/network.c b/src/network.c
index e88e5c57..56ca924d 100644
--- a/src/network.c
+++ b/src/network.c
@@ -1247,11 +1247,11 @@ static void sim_pnn_read_cb(struct ofono_modem *modem, int ok,
if (length < 3 || record_length < 3 || length < record_length)
return;
+ total = length / record_length;
+
if (!netreg->eons)
netreg->eons = sim_eons_new(total);
- total = length / record_length;
-
sim_eons_add_pnn_record(netreg->eons, record, data, record_length);
/* If PNN is not present then OPL is not useful, don't