Commit 4417ac88 authored by Kris Katterjohn's avatar Kris Katterjohn Committed by Nick Mathewson
Browse files

Fix a compiler warning on OpenBSD

malloc_options needs to be declared extern (and declaring it extern
means we need to initialize it separately)

Fixes bug 29145; bugfix on
Signed-off-by: default avatarKris Katterjohn <>
parent a3f9ddcf
o Minor bugfixes (compilation, testing):
- Silence a compiler warning in test-memwipe.c on OpenBSD. Fixes
bug 29145; bugfix on Patch from Kris Katterjohn.
......@@ -39,7 +39,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";
static unsigned
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment