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

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