# HG changeset patch # User Andreas Schwab # Date 893842966 0 # Node ID 600f19764b6824f09fd0b97fab962879ddb3b1f0 # Parent 870b55420529b36e3a2b300c301eb9608b172805 (emacs_get_tty): Zero out termios structure before getting attributes to get consistent values for holes. (emacs_set_tty): Likewise. diff -r 870b55420529 -r 600f19764b68 src/sysdep.c --- a/src/sysdep.c Wed Apr 29 09:41:10 1998 +0000 +++ b/src/sysdep.c Wed Apr 29 09:42:46 1998 +0000 @@ -1069,6 +1069,7 @@ /* Retrieve the primary parameters - baud rate, character size, etcetera. */ #ifdef HAVE_TCATTR /* We have those nifty POSIX tcmumbleattr functions. */ + bzero (&settings->main, sizeof (settings->main)); if (tcgetattr (fd, &settings->main) < 0) return -1; @@ -1147,6 +1148,7 @@ { struct termios new; + bzero (&new, sizeof (new)); /* Get the current settings, and see if they're what we asked for. */ tcgetattr (fd, &new); /* We cannot use memcmp on the whole structure here because under