avoid reading uninitialized memory in __map_file
authorSzabolcs Nagy <nsz@port70.net>
Wed, 23 Sep 2015 20:22:33 +0000 (20:22 +0000)
committerRich Felker <dalias@aerifal.cx>
Thu, 24 Sep 2015 06:33:46 +0000 (06:33 +0000)
commitbd275378d35b3535bc8b8321780b00e486c36d96
tree4022f57caccd5cea2da74796b6b01d0756d0fd81
parent4260dfe1ecc43d92d1e6d30daa0f22bd746d1740
avoid reading uninitialized memory in __map_file

The value of *size is not relevant in case of failure, but it's
better not to copy garbage from the stack into it.
(The compiler cannot see through the syscall, so optimization
was not affected by the unspecified value).
src/time/__map_file.c