aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-config.c
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2002-03-08 05:09:08 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2002-03-08 05:09:08 +0800
commit1ee9660d6e38ef63c897262cac54fd59970e37f3 (patch)
treee9982ef77b92504f04ff6ac2adc8233b1fc71c7e /mail/mail-config.c
parentd35649bed3f1e0eb9e06e06669cfdadd016db091 (diff)
downloadgsoc2013-evolution-1ee9660d6e38ef63c897262cac54fd59970e37f3.tar.gz
gsoc2013-evolution-1ee9660d6e38ef63c897262cac54fd59970e37f3.tar.zst
gsoc2013-evolution-1ee9660d6e38ef63c897262cac54fd59970e37f3.zip
Don't use an uninitialized 'id'.
2002-03-07 Jeffrey Stedfast <fejj@ximian.com> * mail-config.c (config_import_old_signatures): Don't use an uninitialized 'id'. svn path=/trunk/; revision=15972
Diffstat (limited to 'mail/mail-config.c')
-rw-r--r--mail/mail-config.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/mail/mail-config.c b/mail/mail-config.c
index 2e6d539f93..c8dc7cfa60 100644
--- a/mail/mail-config.c
+++ b/mail/mail-config.c
@@ -530,14 +530,13 @@ config_import_old_signatures ()
val = bonobo_config_get_string (config->db, path, NULL);
g_free (path);
if (val && *val) {
-
gint id;
gpointer orig_key, node_val;
if (g_hash_table_lookup_extended (cache, val, &orig_key, &node_val)) {
id = GPOINTER_TO_INT (node_val);
} else {
- g_hash_table_insert (cache, g_strdup (val), GINT_TO_POINTER (id));
+ g_hash_table_insert (cache, g_strdup (val), GINT_TO_POINTER (num));
config_write_imported_signature (val, num, FALSE);
id = num;
num ++;
@@ -556,14 +555,13 @@ config_import_old_signatures ()
path = g_strdup_printf ("/Mail/Accounts/identity_html_signature_%d", i);
val = bonobo_config_get_string (config->db, path, NULL);
if (val && *val) {
-
gint id;
gpointer orig_key, node_val;
if (g_hash_table_lookup_extended (cache, val, &orig_key, &node_val)) {
id = GPOINTER_TO_INT (node_val);
} else {
- g_hash_table_insert (cache, g_strdup (val), GINT_TO_POINTER (id));
+ g_hash_table_insert (cache, g_strdup (val), GINT_TO_POINTER (num));
config_write_imported_signature (val, num, TRUE);
id = num;
num ++;