diff --git a/src/cmd/ksh93/sh/nvdisc.c b/src/cmd/ksh93/sh/nvdisc.c index fa6fcfcd5912..3f8015820081 100644 --- a/src/cmd/ksh93/sh/nvdisc.c +++ b/src/cmd/ksh93/sh/nvdisc.c @@ -604,7 +604,7 @@ static char *setdisc(register Namval_t* np,register const char *event,Namval_t * action = vp->bltins[type]; vp->bltins[type] = 0; } - return(action?(char*)action:""); + return((char*)action); } static void putdisc(Namval_t* np, const char* val, int flag, Namfun_t* fp)