]> git.eshelyaron.com Git - emacs.git/commitdiff
(decode_mode_spec): Initialize and use `p' (for the termcap case).
authorRichard M. Stallman <rms@gnu.org>
Sat, 12 Jul 1997 19:11:07 +0000 (19:11 +0000)
committerRichard M. Stallman <rms@gnu.org>
Sat, 12 Jul 1997 19:11:07 +0000 (19:11 +0000)
src/xdisp.c

index a1fad6a504d130e46d6ea18a297c43281db8abff..d7c0bfe34bc3f9cb4da56167ea6afad7d11f3e40 100644 (file)
@@ -4441,7 +4441,7 @@ decode_mode_spec (w, c, spec_width, maxwidth)
       /* 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 @@ decode_mode_spec (w, c, spec_width, maxwidth)
            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