Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/cmd/ksh93/sh/name.c
Original file line number Diff line number Diff line change
Expand Up @@ -512,7 +512,7 @@ void nv_setlist(struct argnod *arg,int flags, Namval_t *typ)
if(!nv_isnull(np) && np->nvalue!=Empty && !nv_isvtree(np))
sub=1;
}
else if(((np->nvalue && np->nvalue!=Empty)||nv_isvtree(np)|| nv_arrayptr(np)) && !nv_type(np))
else if(((np->nvalue.cp && np->nvalue.cp!=Empty)) && !nv_type(np))
{
int was_assoc_array = ap && ap->fun;
nv_unset(np,NV_EXPORT); /* this can free ap */
Expand Down