Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix crash on setting attribute to variable with getn discipline
The 'getn' discipline is experimental and undocumented, the only mention of it being an old mailing list post from David Korn: https://www.mail-archive.com/[email protected]/msg00601.html But it still should not crash. $ LC_NUMERIC=C ENV=/./dev/null arch/*/bin/ksh $ foo.getn() { .sh.value=2.3*4.5; } $ typeset -F foo Memory fault src/cmd/ksh93/sh/nvdisc.c: assign(): - Check that the nvalue union has a non-NULL pointer before using it. Progresses: #435
- Loading branch information