~mdw
/
catacomb
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
progs/pixie.c: Don't crash when trying to set an empty passphrase.
[catacomb]
/
base
/
ct-test.c
diff --git
a/base/ct-test.c
b/base/ct-test.c
index
b4cddc6
..
e0f62e5
100644
(file)
--- a/
base/ct-test.c
+++ b/
base/ct-test.c
@@
-57,7
+57,11
@@
*/
void ct_poison(const void *p, size_t sz)
*/
void ct_poison(const void *p, size_t sz)
- { VALGRIND_MAKE_MEM_UNDEFINED(p, sz); }
+{
+#ifdef HAVE_VALGRIND_H
+ VALGRIND_MAKE_MEM_UNDEFINED(p, sz);
+#endif
+}
/* --- @ct_remedy@ --- *
*
/* --- @ct_remedy@ --- *
*
@@
-74,6
+78,10
@@
void ct_poison(const void *p, size_t sz)
*/
void ct_remedy(const void *p, size_t sz)
*/
void ct_remedy(const void *p, size_t sz)
- { VALGRIND_MAKE_MEM_DEFINED(p, sz); }
+{
+#ifdef HAVE_VALGRIND_H
+ VALGRIND_MAKE_MEM_DEFINED(p, sz);
+#endif
+}
/*----- That's all, folks -------------------------------------------------*/
/*----- That's all, folks -------------------------------------------------*/