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:
@ -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 */
|
||||
}
|
||||
|
Reference in New Issue
Block a user