[seahorse/gnome-3-2] Fix build warnings for uninitialized variables



commit 5c5acf9d176e648e2947d95f5539951c600f27f9
Author: Stef Walter <stefw collabora co uk>
Date:   Mon Nov 14 08:10:09 2011 +0100

    Fix build warnings for uninitialized variables

 pgp/seahorse-gpgme-key-op.c       |    2 +-
 pgp/seahorse-ldap-source.c        |    2 +-
 pgp/seahorse-pgp-key-properties.c |    4 ++--
 3 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/pgp/seahorse-gpgme-key-op.c b/pgp/seahorse-gpgme-key-op.c
index 735a978..d7f0bc3 100644
--- a/pgp/seahorse-gpgme-key-op.c
+++ b/pgp/seahorse-gpgme-key-op.c
@@ -2395,7 +2395,7 @@ photoid_load_transit (guint current_state, gpgme_status_code_t status,
 {
 	PhotoIdLoadParm *parm = (PhotoIdLoadParm*)data;
 	SeahorseGpgmePhoto *photo;
-	GdkPixbuf *pixbuf;
+	GdkPixbuf *pixbuf = NULL;
 	guint next_state = 0;
 	struct stat st;
 	GError *error = NULL;
diff --git a/pgp/seahorse-ldap-source.c b/pgp/seahorse-ldap-source.c
index 24a18b3..8e38f1f 100644
--- a/pgp/seahorse-ldap-source.c
+++ b/pgp/seahorse-ldap-source.c
@@ -216,7 +216,7 @@ get_date_attribute (LDAP* ld, LDAPMessage *res, const char *attribute)
 {
     struct tm t;
     gchar **vals;
-    long int d;
+    long int d = 0;
     
     vals = get_ldap_values (ld, res, attribute);
     if (!vals)
diff --git a/pgp/seahorse-pgp-key-properties.c b/pgp/seahorse-pgp-key-properties.c
index ea15d70..3c85591 100644
--- a/pgp/seahorse-pgp-key-properties.c
+++ b/pgp/seahorse-pgp-key-properties.c
@@ -1893,9 +1893,9 @@ do_trust (SeahorseWidget *swidget)
 			g_signal_connect (widget, "toggled", G_CALLBACK (on_pgp_trusted_toggled), filter);
 			gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (widget), TRUE);
 		}
-	}
 
-	signatures_populate_model (swidget, SEAHORSE_OBJECT_MODEL (store));
+		signatures_populate_model (swidget, SEAHORSE_OBJECT_MODEL (store));
+	}
 }
 
 /* -----------------------------------------------------------------------------



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