[balsa] mailbox_mh: Reduce the scope of two variables



commit f6b05b44227bb4a39b0913f6707bc7f5ca706eab
Author: Peter Bloomfield <PeterBloomfield bellsouth net>
Date:   Fri Aug 13 15:03:51 2021 -0400

    mailbox_mh: Reduce the scope of two variables

 libbalsa/mailbox_mh.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/libbalsa/mailbox_mh.c b/libbalsa/mailbox_mh.c
index 25d031e13..adcc8683c 100644
--- a/libbalsa/mailbox_mh.c
+++ b/libbalsa/mailbox_mh.c
@@ -778,8 +778,6 @@ libbalsa_mailbox_mh_sync(LibBalsaMailbox * mailbox, gboolean expunge)
     int sequences_fd;
     GMimeStream *temp_stream;
     const gchar* sequences_filename;
-    GMimeStream *gmime_stream;
-    GMimeStream *gmime_stream_buffer;
     GByteArray *line;
     gboolean retval = FALSE;
 
@@ -895,6 +893,9 @@ libbalsa_mailbox_mh_sync(LibBalsaMailbox * mailbox, gboolean expunge)
 
     if (sequences_fd >= 0) {
         /* copy unknown sequences */
+        GMimeStream *gmime_stream;
+        GMimeStream *gmime_stream_buffer;
+
         gmime_stream = g_mime_stream_fs_new(sequences_fd);
         gmime_stream_buffer =
             g_mime_stream_buffer_new(gmime_stream,


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