From: Daniel Wagner Date: Tue, 8 May 2012 15:08:23 +0000 (+0200) Subject: oFono: Initialize prefix_length X-Git-Tag: accepted/2.0alpha-wayland/20121110.002834~239 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c7293b647bba1bedf986cf8df2c1d77fcbed3f09;p=profile%2Fivi%2Fconnman.git oFono: Initialize prefix_length We could end up calling connman_ipaddress_set_ipv6() withouth prefix_lenght initialized. Reported by hdante. --- diff --git a/plugins/ofono.c b/plugins/ofono.c index 0dfadb8..f65d78a 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;