[gnome-online-accounts/rhel-7.1: 12/34] kerberos: Correctly set the error if object creation failed



commit 5be820794bc872a512ae9f831daea6c171383467
Author: Debarshi Ray <debarshir gnome org>
Date:   Wed Apr 9 15:25:33 2014 +0200

    kerberos: Correctly set the error if object creation failed
    
    The error is actually a GError **, and not a GError *. There is no need
    to set it to NULL.
    
    Fixes: https://bugzilla.gnome.org/727896

 src/goaidentity/goakerberosidentitymanager.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)
---
diff --git a/src/goaidentity/goakerberosidentitymanager.c b/src/goaidentity/goakerberosidentitymanager.c
index f3664fe..5e33003 100644
--- a/src/goaidentity/goakerberosidentitymanager.c
+++ b/src/goaidentity/goakerberosidentitymanager.c
@@ -1672,7 +1672,6 @@ goa_kerberos_identity_manager_new (GCancellable * cancellable, GError ** error)
                                  (gpointer *) &
                                  goa_kerberos_identity_manager_singleton);
 
-      error = NULL;
       if (!g_initable_init (G_INITABLE (object), cancellable, error))
         {
           g_object_unref (object);


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