[seahorse] Fix build warnings for uninitialized variables
- From: Stefan Walter <stefw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [seahorse] Fix build warnings for uninitialized variables
- Date: Mon, 14 Nov 2011 08:13:40 +0000 (UTC)
commit 5174d6c314583ae800e884875fc602ffc20884d0
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 ++--
src/seahorse-key-manager.c | 2 +-
4 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/pgp/seahorse-gpgme-key-op.c b/pgp/seahorse-gpgme-key-op.c
index 13ce539..5011903 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 98c51fb..df30b83 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 d757189..d958735 100644
--- a/pgp/seahorse-pgp-key-properties.c
+++ b/pgp/seahorse-pgp-key-properties.c
@@ -1876,9 +1876,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));
+ }
}
/* -----------------------------------------------------------------------------
diff --git a/src/seahorse-key-manager.c b/src/seahorse-key-manager.c
index c0e94c4..33650af 100644
--- a/src/seahorse-key-manager.c
+++ b/src/seahorse-key-manager.c
@@ -367,7 +367,7 @@ on_view_show_changed (GtkRadioAction *action,
gpointer user_data)
{
SeahorseKeyManager *self = SEAHORSE_KEY_MANAGER (user_data);
- const gchar *value;
+ const gchar *value = "";
gint radio;
radio = gtk_radio_action_get_current_value (action);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]