CVSROOT:        /sources/nmh
Module name:    nmh
Branch:         
Changes by:     Josh Bressers <[EMAIL PROTECTED]>       06/03/09 19:51:13

Modified files:
        .              : ChangeLog 
        sbr            : fmt_rfc2047.c 

Log message:
        * sbr/fmt_rfc2047.c (decode_rfc2047): Don't close the iconv descriptor 
if
        it isn't valid.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/nmh/nmh/ChangeLog.diff?tr1=1.242&tr2=1.243&r1=text&r2=text
http://cvs.savannah.gnu.org/viewcvs/nmh/nmh/sbr/fmt_rfc2047.c.diff?tr1=1.8&tr2=1.9&r1=text&r2=text

Patches:
Index: nmh/ChangeLog
diff -u nmh/ChangeLog:1.242 nmh/ChangeLog:1.243
--- nmh/ChangeLog:1.242 Wed Mar  8 12:14:15 2006
+++ nmh/ChangeLog       Thu Mar  9 19:51:13 2006
@@ -1,3 +1,8 @@
+2006-03-09  Josh Bressers <[EMAIL PROTECTED]>
+
+       * sbr/fmt_rfc2047.c (decode_rfc2047): Don't close the iconv descriptor
+       if it isn't valid.
+
 2006-03-08  Josh Bressers <[EMAIL PROTECTED]>
 
        * (mh_strcasecmp): Rename the private strcasecmp function to
Index: nmh/sbr/fmt_rfc2047.c
diff -u nmh/sbr/fmt_rfc2047.c:1.8 nmh/sbr/fmt_rfc2047.c:1.9
--- nmh/sbr/fmt_rfc2047.c:1.8   Wed Mar  8 12:14:16 2006
+++ nmh/sbr/fmt_rfc2047.c       Thu Mar  9 19:51:13 2006
@@ -2,7 +2,7 @@
 /*
  * fmt_rfc2047.c -- decode RFC-2047 header format 
  *
- * $Id: fmt_rfc2047.c,v 1.8 2006/03/08 12:14:16 bress Exp $
+ * $Id: fmt_rfc2047.c,v 1.9 2006/03/09 19:51:13 bress 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,7 +200,7 @@
             * 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) {
                use_iconv = 0;
                iconv_close(cd);
             }


_______________________________________________
Nmh-commits mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/nmh-commits

Reply via email to