diff options
author | Mikael Magnusson <mikachu@gmail.com> | 2024-02-09 19:26:54 +0100 |
---|---|---|
committer | Mikael Magnusson <mikachu@gmail.com> | 2024-02-09 19:33:43 +0100 |
commit | 04ae7dc64cde2fa6b7354f685596ff570404a2c9 (patch) | |
tree | bc6b57aa52ab5013a348707343e234a53aa5313e /Src/Modules | |
parent | 791aaf88cca53036d19ad2e247c783744ccf3837 (diff) | |
download | zsh-04ae7dc64cde2fa6b7354f685596ff570404a2c9.tar.gz zsh-04ae7dc64cde2fa6b7354f685596ff570404a2c9.tar.xz zsh-04ae7dc64cde2fa6b7354f685596ff570404a2c9.zip |
52526: metafy terminfo capabilities
Diffstat (limited to 'Src/Modules')
-rw-r--r-- | Src/Modules/terminfo.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Src/Modules/terminfo.c b/Src/Modules/terminfo.c index 4596b41d2..f9ab64fb3 100644 --- a/Src/Modules/terminfo.c +++ b/Src/Modules/terminfo.c @@ -160,7 +160,7 @@ getterminfo(UNUSED(HashTable ht), const char *name) pm->node.flags |= PM_SCALAR; pm->gsu.s = &nullsetscalar_gsu; } else if ((tistr = (char *)tigetstr(nameu)) != NULL && tistr != (char *)-1) { - pm->u.str = dupstring(tistr); + pm->u.str = metafy(tistr, -1, META_HEAPDUP); pm->node.flags |= PM_SCALAR; pm->gsu.s = &nullsetscalar_gsu; } else { @@ -280,7 +280,7 @@ scanterminfo(UNUSED(HashTable ht), ScanFunc func, int flags) for (capname = (char **)strnames; *capname; capname++) { if ((tistr = (char *)tigetstr(*capname)) != NULL && tistr != (char *)-1) { - pm->u.str = dupstring(tistr); + pm->u.str = metafy(tistr, -1, META_HEAPDUP); pm->node.nam = dupstring(*capname); func(&pm->node, flags); } |