]> git.ipfire.org Git - thirdparty/coreutils.git/commit
stty: portability: accommodate CIL
authorJim Meyering <meyering@redhat.com>
Tue, 12 Jun 2012 14:13:43 +0000 (16:13 +0200)
committerJim Meyering <meyering@redhat.com>
Tue, 12 Jun 2012 14:32:12 +0000 (16:32 +0200)
commit5c2181c870f4bc1abaee8ffd0b088ab05f87a61c
treec46a240defacbef389b0c917541a258230d8e157
parent07595ed8567368ca7857df974e1d8209716e7ec1
stty: portability: accommodate CIL

* src/stty.c (main): Declare locals "mode" and "new_mode" to be static
to ensure that each is initialized to zero, *including* all padding.
While gcc clears padding of a local automatic initialized to "{ 0, }",
CIL does not, and the C99 standard is not clear on this issue.
Reported by Edward Schwartz.  See http://bugs.gnu.org/11675 for details.
THANKS.in
src/stty.c