diff options
author | Claudio Takahasi <claudio.takahasi@openbossa.org> | 2010-05-14 13:17:55 -0300 |
---|---|---|
committer | Vinicius Costa Gomes <vinicius.gomes@openbossa.org> | 2010-05-14 16:28:51 -0300 |
commit | 1d2bc38186f84927c425237051b187c1e5b9ab7f (patch) | |
tree | 6a8b6e05899fee1ece50907bd5188b8197610946 | |
parent | fedc464f913cefaa18d46d6eb1a749216765bdcb (diff) | |
download | obexd-1d2bc38186f84927c425237051b187c1e5b9ab7f.tar.gz |
Fix not initialized return value for dummy SetPhoneBook
For success cases the variable used to store the return value is
not initialized.
-rw-r--r-- | plugins/phonebook-dummy.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/phonebook-dummy.c b/plugins/phonebook-dummy.c index b63b876..da625b6 100644 --- a/plugins/phonebook-dummy.c +++ b/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); |