summaryrefslogtreecommitdiff
path: root/mail/mutt/patches/patch-ai
blob: bde48e1abc977f780b0c71e567ad27912509fed8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
$NetBSD: patch-ai,v 1.3 2001/05/10 14:25:35 agc Exp $

If Subject is NULL, don't try to dereference it.

--- rfc2047.c	2001/05/10 14:11:38	1.1
+++ rfc2047.c	2001/05/10 14:12:35
@@ -390,6 +390,10 @@
 
   dlen--; /* save room for the terminal nul */
 
+  if (s == NULL) {
+	return;
+  }
+
   while (*s && dlen > 0)
   {
     if ((p = strstr (s, "=?")) == NULL ||