From af840ab38b26f0cae42c9771d55801e239ffbd75 Mon Sep 17 00:00:00 2001 From: Ken Hornstein Date: Thu, 23 Jan 2014 14:55:21 -0500 Subject: [PATCH] Whoops, forgot to initialize the linked list next pointer to NULL. --- uip/mhbuildsbr.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/uip/mhbuildsbr.c b/uip/mhbuildsbr.c index 840f0467..e5909229 100644 --- a/uip/mhbuildsbr.c +++ b/uip/mhbuildsbr.c @@ -237,7 +237,9 @@ build_mime (char *infile, int autobuild, int dist, int directives, entry = mh_xmalloc(sizeof(*entry)); entry->filename = getcpy(s); + entry->next = NULL; free(vp); + if (attach_tail) { attach_tail->next = entry; attach_tail = entry; -- 2.56.0