Fix another instance of the bogus malloc-hook check

This commit is contained in:
Jeff Law 2020-07-21 16:16:24 -06:00
parent ae03cd88e6
commit 541ec729cf

View File

@ -24,3 +24,12 @@ index db54a6a..fa4352d 100755
void *ptr;
void *myhook(size_t size, const void *caller) {
rc = 0;
@@ -22252,7 +22252,7 @@ else
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
#include <malloc.h>
- static int rc = 1;
+ volatile static int rc = 1;
void *ptr;
void *myhook(size_t size, const void *caller) {
rc = 0;