diff options
author | Bart Schaefer <schaefer@zsh.org> | 2024-03-04 21:39:29 -0800 |
---|---|---|
committer | Bart Schaefer <schaefer@zsh.org> | 2024-03-04 21:39:29 -0800 |
commit | c0a392b3924951a316f7183e89afd302c5f680e8 (patch) | |
tree | 11b98f337d4434313d1e9c3d4569b0aa26f63afb /Src | |
parent | d27ea2ae02275b255f9efbf929d1dc7932aebc57 (diff) | |
download | zsh-c0a392b3924951a316f7183e89afd302c5f680e8.tar.gz zsh-c0a392b3924951a316f7183e89afd302c5f680e8.tar.xz zsh-c0a392b3924951a316f7183e89afd302c5f680e8.zip |
unposted (cf. 52615): use META_NOALLOC for 52591
Diffstat (limited to 'Src')
-rw-r--r-- | Src/builtin.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Src/builtin.c b/Src/builtin.c index 0aae1fcde..6f98990f9 100644 --- a/Src/builtin.c +++ b/Src/builtin.c @@ -5255,7 +5255,7 @@ bin_print(char *name, char **args, Options ops, int func) } } if (*argp) { - width = (int)mathevali(metafy(*argp, len[argp - args], META_USEHEAP)); + width = (int)mathevali(metafy(*argp, len[argp - args], META_NOALLOC)); argp++; if (errflag) { errflag &= ~ERRFLAG_ERROR; @@ -5290,7 +5290,7 @@ bin_print(char *name, char **args, Options ops, int func) } if (*argp) { - prec = (int)mathevali(metafy(*argp, len[argp - args], META_USEHEAP)); + prec = (int)mathevali(metafy(*argp, len[argp - args], META_NOALLOC)); argp++; if (errflag) { errflag &= ~ERRFLAG_ERROR; @@ -5403,7 +5403,7 @@ bin_print(char *name, char **args, Options ops, int func) break; case 'q': stringval = curarg ? - quotestring(metafy(curarg, curlen, META_USEHEAP), + quotestring(metafy(curarg, curlen, META_NOALLOC), QT_BACKSLASH_SHOWNULL) : &nullstr; *d = 's'; print_val(unmetafy(stringval, &curlen)); @@ -5475,7 +5475,7 @@ bin_print(char *name, char **args, Options ops, int func) *d++ = 'l'; #endif *d++ = 'l', *d++ = *c, *d = '\0'; - zlongval = (curarg) ? mathevali(metafy(curarg, curlen, META_HEAPDUP)) : 0; + zlongval = (curarg) ? mathevali(metafy(curarg, curlen, META_NOALLOC)) : 0; if (errflag) { zlongval = 0; errflag &= ~ERRFLAG_ERROR; @@ -5526,7 +5526,7 @@ bin_print(char *name, char **args, Options ops, int func) if (!curarg) zulongval = (zulong)0; else if (!zstrtoul_underscore(curarg, &zulongval)) - zulongval = mathevali(metafy(curarg, curlen, META_HEAPDUP)); + zulongval = mathevali(metafy(curarg, curlen, META_NOALLOC)); if (errflag) { zulongval = 0; errflag &= ~ERRFLAG_ERROR; |