From: Richard M. Stallman Date: Sat, 12 Jul 1997 06:47:19 +0000 (+0000) Subject: (message2_nolog): Don't call fwrite will null string. X-Git-Tag: emacs-20.1~1194 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=c3597849243b38e36e0124197fd5de4185227906;p=emacs.git (message2_nolog): Don't call fwrite will null string. --- diff --git a/src/xdisp.c b/src/xdisp.c index 65b4c2c26e8..a1fad6a504d 100644 --- a/src/xdisp.c +++ b/src/xdisp.c @@ -418,7 +418,8 @@ message2_nolog (m, len) 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);