From 0b33d60affc321d549178b78a39e9df910dfe74f Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Sat, 15 Dec 2007 23:05:30 -0800 Subject: Cope with valgrind > 3.2.x. Jeremy. (This used to be commit e799eb8da6f5e7a2173ba6b8fb040430fd1c6f34) --- source3/lib/clobber.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'source3/lib/clobber.c') diff --git a/source3/lib/clobber.c b/source3/lib/clobber.c index b97262a055..e77e786fb5 100644 --- a/source3/lib/clobber.c +++ b/source3/lib/clobber.c @@ -53,7 +53,11 @@ void clobber_region(const char *fn, unsigned int line, char *dest, size_t len) * (This is not redundant with the clobbering above. The * marking might not actually take effect if we're not running * under valgrind.) */ +#if defined(VALGRIND_MAKE_MEM_UNDEFINED) + VALGRIND_MAKE_MEM_UNDEFINED(dest, len); +#elif defined(VALGRIND_MAKE_WRITABLE) VALGRIND_MAKE_WRITABLE(dest, len); +#endif #endif /* VALGRIND */ #endif /* DEVELOPER */ } -- cgit