From c7293b647bba1bedf986cf8df2c1d77fcbed3f09 Mon Sep 17 00:00:00 2001 From: Daniel Wagner Date: Tue, 8 May 2012 17:08:23 +0200 Subject: oFono: Initialize prefix_length We could end up calling connman_ipaddress_set_ipv6() withouth prefix_lenght initialized. Reported by hdante. --- plugins/ofono.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins/ofono.c') diff --git a/plugins/ofono.c b/plugins/ofono.c index 0dfadb86..f65d78a6 100644 --- a/plugins/ofono.c +++ b/plugins/ofono.c @@ -834,7 +834,7 @@ static void extract_ipv6_settings(DBusMessageIter *array, { DBusMessageIter dict; char *address = NULL, *gateway = NULL; - unsigned char prefix_length; + unsigned char prefix_length = 0; char *nameservers = NULL; const char *interface = NULL; int index = -1; -- cgit v1.2.3