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



commit 409ec165f729093a8d503ba864277f60608e9a19
Author: Xavier Claessens <xavier claessens collabora co uk>
Date:   Wed Mar 28 09:40:54 2012 +0200

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

 src/goabackend/goaoauth2provider.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/goabackend/goaoauth2provider.c b/src/goabackend/goaoauth2provider.c
index d73a8ed..92cc9f2 100644
--- a/src/goabackend/goaoauth2provider.c
+++ b/src/goabackend/goaoauth2provider.c
@@ -1553,6 +1553,7 @@ goa_oauth2_provider_ensure_credentials_sync (GoaProvider   *_provider,
         {
           force_refresh = TRUE;
           g_free (access_token); access_token = NULL;
+          g_clear_error (error);
           goto again;
         }
       else



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