nmh-commits
[Top][All Lists]
Advanced

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

[Nmh-commits] nmh/sbr fmt_rfc2047.c


From: Oliver Kiddle
Subject: [Nmh-commits] nmh/sbr fmt_rfc2047.c
Date: Sun, 05 Mar 2006 14:48:06 +0000

CVSROOT:        /cvsroot/nmh
Module name:    nmh
Branch:         
Changes by:     Oliver Kiddle <address@hidden>  06/03/05 14:48:05

Modified files:
        sbr            : fmt_rfc2047.c 

Log message:
        and close iconv handle if encoded block empty

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/nmh/nmh/sbr/fmt_rfc2047.c.diff?tr1=1.6&tr2=1.7&r1=text&r2=text

Patches:
Index: nmh/sbr/fmt_rfc2047.c
diff -u nmh/sbr/fmt_rfc2047.c:1.6 nmh/sbr/fmt_rfc2047.c:1.7
--- nmh/sbr/fmt_rfc2047.c:1.6   Sun Mar  5 14:38:23 2006
+++ nmh/sbr/fmt_rfc2047.c       Sun Mar  5 14:48:05 2006
@@ -2,7 +2,7 @@
 /*
  * fmt_rfc2047.c -- decode RFC-2047 header format 
  *
- * $Id: fmt_rfc2047.c,v 1.6 2006/03/05 14:38:23 opk Exp $
+ * $Id: fmt_rfc2047.c,v 1.7 2006/03/05 14:48:05 opk Exp $
  *
  * This code is Copyright (c) 2002, by the authors of nmh.  See the
  * COPYRIGHT file in the root directory of the nmh distribution for
@@ -200,8 +200,10 @@
             * empty encoded text. This ensures that we don't
             * malloc 0 bytes but skip on to the end
             */
-           if (endofmime == startofmime)
+           if (endofmime == startofmime) {
                use_iconv = 0;
+               iconv_close(cd);
+            }
 
            if (use_iconv) {
                saveq = q;




reply via email to

[Prev in Thread] Current Thread [Next in Thread]