tolerate padding in mbstate_t
authorAlexandre Oliva <oliva@adacore.com>
Thu, 23 Jan 2020 19:36:34 +0000 (16:36 -0300)
committerAlexandre Oliva <oliva@gnu.org>
Thu, 23 Jan 2020 19:36:34 +0000 (16:36 -0300)
commit7a900bcecab71593b731aa7dcad0fa3be8137f5a
tree9e88fcae475cc8944dcde113ff4fa94f36a953fd
parent32667e04c7153d97d09d81c1af073d400f0c719a
tolerate padding in mbstate_t

Padding in mbstate_t objects may get the memcmp to fail.
Attempt to avoid the failure with zero initialization.

for  libstdc++-v3/ChangeLog

* testsuite/27_io/fpos/mbstate_t/1.cc: Zero-init mbstate_t.
libstdc++-v3/ChangeLog
libstdc++-v3/testsuite/27_io/fpos/mbstate_t/1.cc