From 3052f58750d98b97cebe65adf44e971c1b54d72e Mon Sep 17 00:00:00 2001 From: Claudio Takahasi Date: Fri, 14 May 2010 13:17:55 -0300 Subject: [PATCH] obexd: Fix not initialized return value for dummy SetPhoneBook For success cases the variable used to store the return value is not initialized. --- obexd/plugins/phonebook-dummy.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/obexd/plugins/phonebook-dummy.c b/obexd/plugins/phonebook-dummy.c index b63b876d0..da625b609 100644 --- a/obexd/plugins/phonebook-dummy.c +++ b/obexd/plugins/phonebook-dummy.c @@ -364,7 +364,7 @@ char *phonebook_set_folder(const char *current_folder, { gboolean root, child; char *tmp1, *tmp2, *base, *absolute, *relative = NULL; - int ret, len; + int len, ret = 0; root = (g_strcmp0("/", current_folder) == 0); child = (new_folder && strlen(new_folder) != 0); -- 2.47.3