]> diplodocus.org Git - nmh/commitdiff
Whoops, forgot to initialize the linked list next pointer to NULL.
authorKen Hornstein <kenh@pobox.com>
Thu, 23 Jan 2014 19:55:21 +0000 (14:55 -0500)
committerKen Hornstein <kenh@pobox.com>
Thu, 23 Jan 2014 19:55:21 +0000 (14:55 -0500)
uip/mhbuildsbr.c

index 840f0467b6fd1ec2d035db3cd8221ff38dd8e696..e5909229ca85fbd8500ad402be66eaf7a0468323 100644 (file)
@@ -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;