Mercurial > emacs
diff src/sysdep.c @ 21843:600f19764b68
(emacs_get_tty): Zero out termios structure before
getting attributes to get consistent values for holes.
(emacs_set_tty): Likewise.
| author | Andreas Schwab <schwab@suse.de> |
|---|---|
| date | Wed, 29 Apr 1998 09:42:46 +0000 |
| parents | 07999a47f2ee |
| children | 0af99a2dc706 |
line wrap: on
line diff
--- 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
