1
0
mirror of https://github.com/samba-team/samba.git synced 2025-08-03 04:22:09 +03:00

Cope with valgrind > 3.2.x.

Jeremy.
(This used to be commit e799eb8da6)
This commit is contained in:
Jeremy Allison
2007-12-15 23:05:30 -08:00
parent d76b086cc9
commit 0b33d60aff

View File

@ -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 */
}