Blame SOURCES/mailx-12.5-fname-null.patch

c6c8a7
diff -upr mailx-12.5.orig/names.c mailx-12.5/names.c
c6c8a7
--- mailx-12.5.orig/names.c	2006-03-04 01:32:16.000000000 +0100
c6c8a7
+++ mailx-12.5/names.c	2012-11-01 15:28:43.883573793 +0100
c6c8a7
@@ -357,7 +357,7 @@ outof(struct name *names, FILE *fo, stru
c6c8a7
 			free_child(pid);
c6c8a7
 		} else {
c6c8a7
 			int f;
c6c8a7
-			if ((fout = Zopen(fname, "a", NULL)) == NULL) {
c6c8a7
+			if ((fname == NULL) || ((fout = Zopen(fname, "a", NULL)) == NULL)) {
c6c8a7
 				perror(fname);
c6c8a7
 				senderr++;
c6c8a7
 				goto cant;