diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2009-08-20 23:58:51 -0700 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2009-08-20 23:58:51 -0700 |
commit | f28b8226e3c0adcc88c0e9a5a01529c02ad814a1 (patch) | |
tree | 678abe35f825e7ebd7555134bb95a833e3c122be /src/plugin.c | |
parent | 319344bb0a81db7538d6de258046a64855fc2938 (diff) | |
download | bluez-f28b8226e3c0adcc88c0e9a5a01529c02ad814a1.tar.gz |
Fix builtin plugin loading when PLUGINDIR is not valid
Diffstat (limited to 'src/plugin.c')
-rw-r--r-- | src/plugin.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/plugin.c b/src/plugin.c index c6567a96d..ceecacb21 100644 --- a/src/plugin.c +++ b/src/plugin.c @@ -147,7 +147,7 @@ gboolean plugin_init(GKeyFile *config) dir = g_dir_open(PLUGINDIR, 0, NULL); if (!dir) { g_strfreev(disabled); - return FALSE; + goto start; } while ((file = g_dir_read_name(dir)) != NULL) { @@ -189,6 +189,7 @@ gboolean plugin_init(GKeyFile *config) g_strfreev(disabled); +start: for (list = plugins; list; list = list->next) { struct bluetooth_plugin *plugin = list->data; |