diff options
author | Leesoo Ahn <yisooan@fedoraproject.org> | 2019-10-26 16:22:32 +0900 |
---|---|---|
committer | Leesoo Ahn <yisooan@fedoraproject.org> | 2019-10-26 16:22:32 +0900 |
commit | 9bbbb8ad1fcd4cc583961326efb9dbb68a8e5ab7 (patch) | |
tree | 21cd6a70bc61f791feaa70aa0f28998a70c95aba | |
parent | f5a3946b69233ca38859e978f22049a9154aab32 (diff) | |
download | libgfbgraph-9bbbb8ad1fcd4cc583961326efb9dbb68a8e5ab7.tar.gz |
simple-authorizer: NULL parameter check for a public api
-rw-r--r-- | gfbgraph/gfbgraph-simple-authorizer.c | 2 |
1 files changed, 2 insertions, 0 deletions
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)); } |