diff options
Diffstat (limited to '')
| -rw-r--r-- | src/regress/lib/libc/malloc/malloc_general/malloc_general.c | 6 |
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) { |
