[balsa/gtk3] Reduce scope of variable



commit 2930731a42ee3509eeb089b8070fa9b6452d4d8a
Author: Peter Bloomfield <PeterBloomfield bellsouth net>
Date:   Sun Jul 22 15:36:27 2012 -0400

    Reduce scope of variable
    
    	* src/mailbox-conf.c (mailbox_conf_update): reduce scope of
    	variable.

 ChangeLog          |    5 +++++
 src/mailbox-conf.c |    2 +-
 2 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 3acee68..9cab46f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 2012-07-22  Peter Bloomfield
 
+	* src/mailbox-conf.c (mailbox_conf_update): reduce scope of
+	variable.
+
+2012-07-22  Peter Bloomfield
+
 	* src/balsa-mime-widget.c (balsa_mime_widget_new_unknown):
 	reduce scope of variables.
 
diff --git a/src/mailbox-conf.c b/src/mailbox-conf.c
index 408a41e..fdc77bd 100644
--- a/src/mailbox-conf.c
+++ b/src/mailbox-conf.c
@@ -909,7 +909,6 @@ static void
 mailbox_conf_update(MailboxConfWindow *mcw)
 {
     LibBalsaMailbox *mailbox = LIBBALSA_MAILBOX(mcw->mailbox);
-    int i;
 
     mailbox_conf_view_check(mcw->view_info, mailbox);
 
@@ -925,6 +924,7 @@ mailbox_conf_update(MailboxConfWindow *mcw)
 	path = g_strdup(libbalsa_mailbox_local_get_path(mailbox));
         if (strcmp(filename, path)) {
             /* rename */
+            int i;
 	    gchar *file_dir, *path_dir;
 
             i = libbalsa_mailbox_local_set_path(LIBBALSA_MAILBOX_LOCAL



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