aboutsummaryrefslogtreecommitdiffstats
path: root/lib/oauth.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/oauth.c')
-rw-r--r--lib/oauth.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/oauth.c b/lib/oauth.c
index 4f431ed6..23353c61 100644
--- a/lib/oauth.c
+++ b/lib/oauth.c
@@ -133,6 +133,9 @@ void oauth_params_del( GSList **params, const char *key )
int key_len = strlen( key );
GSList *l, *n;
+ if( params == NULL )
+ return NULL;
+
for( l = *params; l; l = n )
{
n = l->next;
@@ -157,6 +160,9 @@ const char *oauth_params_get( GSList **params, const char *key )
int key_len = strlen( key );
GSList *l;
+ if( params == NULL )
+ return NULL;
+
for( l = *params; l; l = l->next )
{
if( strncmp( (char*) l->data, key, key_len ) == 0 &&