From cae8e96bf5bf4baef7e2b74cfb692ebc8df508c8 Mon Sep 17 00:00:00 2001 From: normal Date: Mon, 30 Nov 2015 22:53:21 +0000 Subject: missing/explicit_bzero.c: Fixup r52806 Maybe kosaki had a better version, but CI failure emails are annoying. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52819 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- missing/explicit_bzero.c | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 missing/explicit_bzero.c (limited to 'missing') diff --git a/missing/explicit_bzero.c b/missing/explicit_bzero.c new file mode 100644 index 0000000000..cb11bd6da1 --- /dev/null +++ b/missing/explicit_bzero.c @@ -0,0 +1,8 @@ +#include + +/* prevent the compiler from optimizing away memset or bzero */ +void +explicit_bzero(void *p, size_t n) +{ + memset(p, 0, n); +} -- cgit v1.2.3