[gnome-online-accounts] provider: check that provider_type is not NULL in get_for_provider_type()
- From: Marco Barisione <mbari src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-online-accounts] provider: check that provider_type is not NULL in get_for_provider_type()
- Date: Thu, 22 Aug 2013 14:17:59 +0000 (UTC)
commit c27873a0109f68f056acd8740acf8f687aca55a0
Author: Marco Barisione <marco barisione collabora co uk>
Date: Tue Aug 20 15:47:31 2013 +0100
provider: check that provider_type is not NULL in get_for_provider_type()
https://bugzilla.gnome.org/show_bug.cgi?id=696267
src/goabackend/goaprovider.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/goabackend/goaprovider.c b/src/goabackend/goaprovider.c
index 32d10d0..9880c2c 100644
--- a/src/goabackend/goaprovider.c
+++ b/src/goabackend/goaprovider.c
@@ -863,6 +863,8 @@ goa_provider_get_for_provider_type (const gchar *provider_type)
gchar **split_provider_type;
GoaProvider *ret;
+ g_return_val_if_fail (provider_type != NULL, NULL);
+
ensure_builtins_loaded ();
ret = NULL;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]