[krb5-auth-dialog] Don't try to set an empty property



commit 5342205c2a07299d6d05aa70018c139c097abd80
Author: Guido Günther <agx sigxcpu org>
Date:   Fri Oct 24 16:24:15 2014 +0200

    Don't try to set an empty property
    
    Resulting from a c'n'p error we still set old_path resulting in ""
    being treated as property.

 src/ka-preferences.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/ka-preferences.c b/src/ka-preferences.c
index 5880afd..681192f 100644
--- a/src/ka-preferences.c
+++ b/src/ka-preferences.c
@@ -331,7 +331,7 @@ ka_preferences_smartcard_toggled (GtkToggleButton *toggle,
         if (old_path && strlen(old_path))
             g_object_set (self->priv->applet, KA_PROP_NAME_PK_USERID, old_path, NULL);
         else
-            g_object_set (self->priv->applet, KA_PROP_NAME_PK_USERID, old_path, "", NULL);
+            g_object_set (self->priv->applet, KA_PROP_NAME_PK_USERID, "", NULL);
     }
 }
 


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