aboutsummaryrefslogtreecommitdiff
path: root/malloc/mcheck.c
diff options
context:
space:
mode:
Diffstat (limited to 'malloc/mcheck.c')
-rw-r--r--malloc/mcheck.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/malloc/mcheck.c b/malloc/mcheck.c
index 42e8e71174..0d32fc17f7 100644
--- a/malloc/mcheck.c
+++ b/malloc/mcheck.c
@@ -111,12 +111,18 @@ check_all ()
with. */
struct hdr *runp = root;
+ /* Temporarily turn off the checks. */
+ pedantic = 0;
+
while (runp != NULL)
{
(void) checkhdr (runp);
runp = runp->next;
}
+
+ /* Turn checks on again. */
+ pedantic = 1;
}
static void unlink_blk __P ((struct hdr *ptr));