[balsa/gtk3] Reduce scope of variables



commit 12bf5dbb676eb2be4d393982f2b201b79a07e963
Author: Peter Bloomfield <PeterBloomfield bellsouth net>
Date:   Sun Jul 22 15:00:52 2012 -0400

    Reduce scope of variables
    
    	* libbalsa/gmime-multipart-crypt.c (sign_prepare): reduce scope.

 ChangeLog                        |    4 ++++
 libbalsa/gmime-multipart-crypt.c |    5 +++--
 2 files changed, 7 insertions(+), 2 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index dfe8f67..bb139e9 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2012-07-22  Peter Bloomfield
 
+	* libbalsa/gmime-multipart-crypt.c (sign_prepare): reduce scope.
+
+2012-07-22  Peter Bloomfield
+
 	* libbalsa/gmime-gpgme-signature.h: suppress cppcheck syntax
 	error.
 
diff --git a/libbalsa/gmime-multipart-crypt.c b/libbalsa/gmime-multipart-crypt.c
index 17b59fd..e78dbb4 100644
--- a/libbalsa/gmime-multipart-crypt.c
+++ b/libbalsa/gmime-multipart-crypt.c
@@ -50,11 +50,12 @@ static void
 sign_prepare(GMimeObject * mime_part)
 {
     GMimeContentEncoding encoding;
-    GMimeMultipart *multipart;
     GMimeObject *subpart;
-    int i, n;
 
     if (GMIME_IS_MULTIPART(mime_part)) {
+        GMimeMultipart *multipart;
+        int i, n;
+
 	multipart = (GMimeMultipart *) mime_part;
 
 	if (GMIME_IS_MULTIPART_SIGNED(multipart) ||



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