From: Ken Hornstein Date: Thu, 23 Jan 2014 19:55:21 +0000 (-0500) Subject: Whoops, forgot to initialize the linked list next pointer to NULL. X-Git-Url: https://diplodocus.org/git/nmh/commitdiff_plain/af840ab38b26f0cae42c9771d55801e239ffbd75?ds=inline;hp=--cc Whoops, forgot to initialize the linked list next pointer to NULL. --- af840ab38b26f0cae42c9771d55801e239ffbd75 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;