[libgfbgraph] simple-authorizer: NULL parameter check for a public api
- From: Leesoo Ahn <yisooan src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgfbgraph] simple-authorizer: NULL parameter check for a public api
- Date: Sat, 26 Oct 2019 07:29:08 +0000 (UTC)
commit 9bbbb8ad1fcd4cc583961326efb9dbb68a8e5ab7
Author: Leesoo Ahn <yisooan fedoraproject org>
Date: Sat Oct 26 16:22:32 2019 +0900
simple-authorizer: NULL parameter check for a public api
gfbgraph/gfbgraph-simple-authorizer.c | 2 ++
1 file changed, 2 insertions(+)
---
diff --git a/gfbgraph/gfbgraph-simple-authorizer.c b/gfbgraph/gfbgraph-simple-authorizer.c
index 1f4d6e9..6e503c4 100644
--- a/gfbgraph/gfbgraph-simple-authorizer.c
+++ b/gfbgraph/gfbgraph-simple-authorizer.c
@@ -203,5 +203,7 @@ gfbgraph_simple_authorizer_refresh_authorization (GFBGraphAuthorizer *iface, GCa
GFBGraphSimpleAuthorizer*
gfbgraph_simple_authorizer_new (const gchar *access_token)
{
+ g_return_val_if_fail (access_token != NULL, NULL);
+
return GFBGRAPH_SIMPLE_AUTHORIZER (g_object_new (GFBGRAPH_TYPE_SIMPLE_AUTHORIZER, "access-token",
access_token, NULL));
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]