Hi Szymon, On Wed, Jun 13, 2012 at 11:49 PM, Szymon Janc <szymon@xxxxxxxxxxx> wrote: > If opendir() call fails count would be passed to callback > uninitialized. > --- > plugins/phonebook-dummy.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/plugins/phonebook-dummy.c b/plugins/phonebook-dummy.c > index 035ec35..6b9d040 100644 > --- a/plugins/phonebook-dummy.c > +++ b/plugins/phonebook-dummy.c > @@ -218,7 +218,7 @@ static gboolean read_dir(void *user_data) > struct dummy_data *dummy = user_data; > GString *buffer; > DIR *dp; > - uint16_t count, max, offset; > + uint16_t count = 0, max, offset; > > buffer = g_string_new(""); > > -- > 1.7.10.4 I went ahead and applied patches with exception of the one I commented. -- Luiz Augusto von Dentz -- To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html