summaryrefslogtreecommitdiffstats
path: root/source
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2007-12-15 23:05:30 -0800
committerJeremy Allison <jra@samba.org>2007-12-15 23:05:30 -0800
commite799eb8da6f5e7a2173ba6b8fb040430fd1c6f34 (patch)
treee5cc3db890d1a6e2124480c3b54fa4309b677e0d /source
parent446ebae76d6796b30e4c71ff7190337c28637be6 (diff)
downloadsamba-e799eb8da6f5e7a2173ba6b8fb040430fd1c6f34.tar.gz
samba-e799eb8da6f5e7a2173ba6b8fb040430fd1c6f34.tar.xz
samba-e799eb8da6f5e7a2173ba6b8fb040430fd1c6f34.zip
Cope with valgrind > 3.2.x.
Jeremy.
Diffstat (limited to 'source')
-rw-r--r--source/lib/clobber.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source/lib/clobber.c b/source/lib/clobber.c
index b97262a0554..e77e786fb5d 100644
--- a/source/lib/clobber.c
+++ b/source/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 */
}