diff options
author | Bastien Nocera <hadess@hadess.net> | 2009-06-18 18:04:27 +0100 |
---|---|---|
committer | Bastien Nocera <hadess@hadess.net> | 2009-06-18 18:04:27 +0100 |
commit | 6ed892f19bc5aef343f97529712d5b08a479a71a (patch) | |
tree | b01b1cfc653d525fa6dcbd682c2141fc2a360352 /lib/bluetooth-plugin-manager.c | |
parent | 1bae0e8d14e3990fb456949ebc418807a3f169bb (diff) | |
download | gnome-bluetooth-6ed892f19bc5aef343f97529712d5b08a479a71a.tar.gz |
Add some safeguards to the plugins accessors
Diffstat (limited to 'lib/bluetooth-plugin-manager.c')
-rw-r--r-- | lib/bluetooth-plugin-manager.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/bluetooth-plugin-manager.c b/lib/bluetooth-plugin-manager.c index cc78b80e..dec614bc 100644 --- a/lib/bluetooth-plugin-manager.c +++ b/lib/bluetooth-plugin-manager.c @@ -114,6 +114,8 @@ bluetooth_plugin_manager_get_widgets (const char *bdaddr, GList *ret = NULL; GList *l; + g_return_val_if_fail (bluetooth_verify_address (bdaddr), NULL); + for (l = plugin_list; l != NULL; l = l->next) { GbtPlugin *p = l->data; @@ -129,6 +131,8 @@ bluetooth_plugin_manager_device_deleted (const char *bdaddr) { GList *l; + g_return_if_fail (bluetooth_verify_address (bdaddr)); + for (l = plugin_list; l != NULL; l = l->next) { GbtPlugin *p = l->data; |