changeset 18752:8fce2f503ea9

(message2_nolog): Don't call fwrite will null string.
author Richard M. Stallman <rms@gnu.org>
date Sat, 12 Jul 1997 06:47:19 +0000
parents c8135c48a66d
children 4f23c695a4f5
files src/xdisp.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/xdisp.c	Sat Jul 12 06:46:48 1997 +0000
+++ b/src/xdisp.c	Sat Jul 12 06:47:19 1997 +0000
@@ -418,7 +418,8 @@
       if (noninteractive_need_newline)
 	putc ('\n', stderr);
       noninteractive_need_newline = 0;
-      fwrite (m, len, 1, stderr);
+      if (m)
+	fwrite (m, len, 1, stderr);
       if (cursor_in_echo_area == 0)
 	fprintf (stderr, "\n");
       fflush (stderr);