commit f70929347f084b805fca35107d9f48b4b17b3b33
parent 17e29bda5d4e39e4cb84fa0ad0b011f576b6b6c6
Author: Nick Mathewson <nickm@torproject.org>
Date: Tue, 19 Feb 2019 11:49:24 -0500
Merge branch 'maint-0.4.0'
Diffstat:
2 files changed, 5 insertions(+), 1 deletion(-)
diff --git a/changes/bug29145 b/changes/bug29145
@@ -0,0 +1,3 @@
+ o Minor bugfixes (compilation, testing):
+ - Silence a compiler warning in test-memwipe.c on OpenBSD. Fixes
+ bug 29145; bugfix on 0.2.9.3-alpha. Patch from Kris Katterjohn.
diff --git a/src/test/test-memwipe.c b/src/test/test-memwipe.c
@@ -47,7 +47,8 @@ const char *s = NULL;
#ifdef OpenBSD
/* Disable some of OpenBSD's malloc protections for this test. This helps
* us do bad things, such as access freed buffers, without crashing. */
-const char *malloc_options="sufjj";
+extern const char *malloc_options;
+const char *malloc_options = "sufjj";
#endif
static unsigned