[balsa/gtk3] Avoid unread variable error



commit 0dffbe4ec99a07a5811caada0076be5478866e4d
Author: Peter Bloomfield <PeterBloomfield bellsouth net>
Date:   Sun Jul 22 15:25:29 2012 -0400

    Avoid unread variable error
    
    	* libbalsa/mailbox_mbox.c (lbm_mbox_stream_seek_to_message):
    	avoid unread variable error.

 ChangeLog               |    5 +++++
 libbalsa/mailbox_mbox.c |    4 ++--
 2 files changed, 7 insertions(+), 2 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 2fd3e22..4b628b2 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 2012-07-22  Peter Bloomfield
 
+	* libbalsa/mailbox_mbox.c (lbm_mbox_stream_seek_to_message):
+	avoid unread variable error.
+
+2012-07-22  Peter Bloomfield
+
 	* libbalsa/mailbox_imap.c (is_child_of), (create_cache_copy),
 	(libbalsa_mailbox_imap_sort): reduce scope of variables.
 
diff --git a/libbalsa/mailbox_mbox.c b/libbalsa/mailbox_mbox.c
index feace48..e240678 100644
--- a/libbalsa/mailbox_mbox.c
+++ b/libbalsa/mailbox_mbox.c
@@ -259,15 +259,15 @@ lbm_mbox_stream_seek_to_message(GMimeStream * stream, off_t offset)
         && (nread = g_mime_stream_read(stream, buffer, sizeof buffer))
         == sizeof buffer
         && strncmp("From ", buffer, 5) == 0;
-#if DEBUG_SEEK
     if (!retval) {
         if (nread == sizeof buffer)
             --nread;
         buffer[nread] = 0;
+#if DEBUG_SEEK
         g_print("%s at %ld failed: read %ld chars, saw \"%s\"\n", __func__,
                 (long) offset, (long) nread, buffer);
-    }
 #endif
+    }
 
     g_mime_stream_seek(stream, offset, GMIME_STREAM_SEEK_SET);
 



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