mirror of
git://git.code.sf.net/p/cdesktopenv/code
synced 2025-02-13 19:52:20 +00:00
Apply Solaris patch 065-CR7110983
This change is pulled from here:
https://github.com/oracle/solaris-userland/blob/master/components/ksh93/patches/065-CR7110983.patch
Unfortunately there is no publicly available documentation on what
it does. We just have to assume the Solaris people knew what they
were doing. It looks like this fixes a memory leak in nv_putval().
This patch was also applied by ksh2020:
056386400a
This commit is contained in:
parent
222515bf08
commit
e20db01247
1 changed files with 3 additions and 0 deletions
|
@ -1888,7 +1888,10 @@ void nv_putval(register Namval_t *np, const char *string, int flags)
|
|||
else
|
||||
{
|
||||
if(size==0 && nv_isattr(np,NV_HOST)!=NV_HOST &&nv_isattr(np,NV_LJUST|NV_RJUST|NV_ZFILL))
|
||||
{
|
||||
nv_setsize(np,size=dot);
|
||||
tofree = up->cp;
|
||||
}
|
||||
else if(size > dot)
|
||||
dot = size;
|
||||
else if(nv_isattr(np,NV_LJUST|NV_RJUST)==NV_LJUST && dot>size)
|
||||
|
|
Loading…
Reference in a new issue