[gnome-online-accounts] Make sure the GError** passed is always pointer to NULL



commit 672d933edf9e2a62777011e01a61a505c70b8514
Author: Debarshi Ray <debarshir gnome org>
Date:   Thu Oct 4 15:28:48 2012 +0200

    Make sure the GError** passed is always pointer to NULL

 src/goabackend/goaoauthprovider.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/goabackend/goaoauthprovider.c b/src/goabackend/goaoauthprovider.c
index 1e7ed03..d97be8e 100644
--- a/src/goabackend/goaoauthprovider.c
+++ b/src/goabackend/goaoauthprovider.c
@@ -1643,6 +1643,7 @@ goa_oauth_provider_ensure_credentials_sync (GoaProvider    *_provider,
           force_refresh = TRUE;
           g_free (access_token); access_token = NULL;
           g_free (access_token_secret); access_token_secret = NULL;
+          g_clear_error (error);
           goto again;
         }
       else



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]