1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

missing/explicit_bzero.c (explicit_bzero): fixup r52839

...for compilers with "weak" attribute.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52841 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
normal 2015-12-01 22:42:00 +00:00
parent 93ce51b00b
commit fd8f7848b4
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,8 @@
Wed Dec 2 07:41:08 2015 Eric Wong <e@80x24.org>
* missing/explicit_bzero.c (explicit_bzero): fixup r52839
for compilers with "weak" attribute
Wed Dec 2 06:47:25 2015 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
* missing/explicit_bzero.c: add ruby_explicit_bzero_hook_unused

View file

@ -49,7 +49,7 @@ ruby_explicit_bzero_hook_unused(void *buf, size_t len)
void
explicit_bzero(void *b, size_t len)
{
memset(b, len);
memset(b, 0, len);
ruby_explicit_bzero_hook_unused(b, len);
}