summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorotto <>2018-11-29 06:04:09 +0000
committerotto <>2018-11-29 06:04:09 +0000
commitba84074f57e5f0f067c453aa61cee8316107861a (patch)
tree26fd776fe2f9386c0d03f74507585810db9c5f18 /src
parent9929fb92ec5eef94190c43b92a4901712953b553 (diff)
downloadopenbsd-ba84074f57e5f0f067c453aa61cee8316107861a.tar.gz
openbsd-ba84074f57e5f0f067c453aa61cee8316107861a.tar.bz2
openbsd-ba84074f57e5f0f067c453aa61cee8316107861a.zip
We're manipulating malloc flags ourselves, start with restting them all.
ok bluhm@
Diffstat (limited to 'src')
-rw-r--r--src/regress/lib/libc/malloc/malloc_general/malloc_general.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/regress/lib/libc/malloc/malloc_general/malloc_general.c b/src/regress/lib/libc/malloc/malloc_general/malloc_general.c
index 51bfb03a34..b90e97ad15 100644
--- a/src/regress/lib/libc/malloc/malloc_general/malloc_general.c
+++ b/src/regress/lib/libc/malloc/malloc_general/malloc_general.c
@@ -60,11 +60,15 @@ main(int argc, char *argv[])
60 int count, p, i; 60 int count, p, i;
61 void * q; 61 void * q;
62 size_t sz; 62 size_t sz;
63 char mo[20];
63 64
64 if (argc == 1) 65 if (argc == 1)
65 errx(1, "usage: malloc_options"); 66 errx(1, "usage: malloc_options");
66 67
67 malloc_options = argv[1]; 68 /* first reset flags that might be set by env or sysctl */
69 strlcpy(mo, "cfgju", sizeof(mo));
70 strlcat(mo, argv[1], sizeof(mo));
71 malloc_options = mo;
68 72
69 for (count = 0; count < 800000; count++) { 73 for (count = 0; count < 800000; count++) {
70 if (count % 10000 == 0) { 74 if (count % 10000 == 0) {