diff options
Diffstat (limited to 'lib/oauth.c')
| -rw-r--r-- | lib/oauth.c | 5 | 
1 files changed, 4 insertions, 1 deletions
| diff --git a/lib/oauth.c b/lib/oauth.c index 372a62d3..4f431ed6 100644 --- a/lib/oauth.c +++ b/lib/oauth.c @@ -121,6 +121,9 @@ void oauth_params_add( GSList **params, const char *key, const char *value )  {  	char *item; +	if( !key || !value ) +		return; +	  	item = g_strdup_printf( "%s=%s", key, value );  	*params = g_slist_insert_sorted( *params, item, (GCompareFunc) strcmp );  } @@ -164,7 +167,7 @@ const char *oauth_params_get( GSList **params, const char *key )  	return NULL;  } -static void oauth_params_parse( GSList **params, char *in ) +void oauth_params_parse( GSList **params, char *in )  {  	char *amp, *eq, *s; | 
