diff options
| author | Wilmer van der Gaast <wilmer@gaast.net> | 2011-12-26 11:50:34 +0100 | 
|---|---|---|
| committer | Wilmer van der Gaast <wilmer@gaast.net> | 2011-12-26 11:50:34 +0100 | 
| commit | 644b8080349d7d42ca89946acc207592fd0acc2d (patch) | |
| tree | ceded3c147f55b819e11503e91cc4d9e75bbcd43 /lib/oauth2.c | |
| parent | 9a1c14d8b636510242f81558f7f0a43918636865 (diff) | |
A few more minor cleanups before merging this into mainline.
Diffstat (limited to 'lib/oauth2.c')
| -rw-r--r-- | lib/oauth2.c | 5 | 
1 files changed, 3 insertions, 2 deletions
| diff --git a/lib/oauth2.c b/lib/oauth2.c index 0348d0d0..1af63974 100644 --- a/lib/oauth2.c +++ b/lib/oauth2.c @@ -116,8 +116,6 @@ static void oauth2_access_token_done( struct http_request *req )  	{  		atoken = oauth2_json_dumb_get( req->reply_body, "access_token" );  		rtoken = oauth2_json_dumb_get( req->reply_body, "refresh_token" ); -		if( getenv( "BITLBEE_DEBUG" ) ) -			printf( "Extracted atoken=%s rtoken=%s\n", atoken, rtoken );  	}  	else  	{ @@ -129,6 +127,9 @@ static void oauth2_access_token_done( struct http_request *req )  		rtoken = g_strdup( oauth_params_get( &p_in, "refresh_token" ) );  		oauth_params_free( &p_in );  	} +	if( getenv( "BITLBEE_DEBUG" ) ) +		printf( "Extracted atoken=%s rtoken=%s\n", atoken, rtoken ); +	  	cb_data->func( cb_data->data, atoken, rtoken );  	g_free( atoken );  	g_free( rtoken ); | 
