From f574b5a0757a16eea9f032c80195323f8b91896f Mon Sep 17 00:00:00 2001 From: Denis Kenzior Date: Wed, 15 Jul 2009 12:09:22 -0500 Subject: Fix uninitialized warning --- src/network.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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 -- cgit v1.2.3