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 0.2.9.3-alpha

Signed-off-by: default avatarKris Katterjohn <katterjohn@gmail.com>
parent a3f9ddcf
Loading
Loading
Loading
Loading

changes/bug29145

0 → 100644
+3 −0
Original line number Diff line number Diff line
  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.
+2 −1
Original line number Diff line number Diff line
@@ -39,6 +39,7 @@ 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. */
extern const char *malloc_options;
const char *malloc_options = "sufjj";
#endif