diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/utils/ct_utils.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/lib/utils/ct_utils.h b/src/lib/utils/ct_utils.h index a10e242a6..3d0d1ac86 100644 --- a/src/lib/utils/ct_utils.h +++ b/src/lib/utils/ct_utils.h @@ -67,7 +67,11 @@ inline void unpoison(const T* p, size_t n) template<typename T> inline void unpoison(T& p) { - unpoison(&p, 1); +#if defined(BOTAN_HAS_VALGRIND) + VALGRIND_MAKE_MEM_DEFINED(p, sizeof(T)); +#else + BOTAN_UNUSED(p); +#endif } /* |