changeset 18761:756cb4d82a49

(decode_mode_spec): Initialize and use `p' (for the termcap case).
author Richard M. Stallman <rms@gnu.org>
date Sat, 12 Jul 1997 19:11:07 +0000
parents e558b6879b0c
children 12c0de0113af
files src/xdisp.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/xdisp.c	Sat Jul 12 18:26:11 1997 +0000
+++ b/src/xdisp.c	Sat Jul 12 19:11:07 1997 +0000
@@ -4441,7 +4441,7 @@
       /* coding-system (including end-of-line type) */
       {
 	int eol_flag = (c == 'Z');
-	char *p;
+	char *p = decode_mode_spec_buf;
 
 	if (FRAME_TERMCAP_P (f))
 	  {
@@ -4451,7 +4451,7 @@
 	    p = decode_mode_spec_coding (terminal_coding.symbol, p, 0);
 	  }
 	p = decode_mode_spec_coding (b->buffer_file_coding_system,
-				     decode_mode_spec_buf, eol_flag);
+				     p, eol_flag);
 
 #if 0 /* This proves to be annoying; I think we can do without.  -- rms.  */
 #ifdef subprocesses