diff --git a/src/cmd/ksh93/sh/nvtype.c b/src/cmd/ksh93/sh/nvtype.c index ee37d65c0bcc..ae298f2f1e02 100644 --- a/src/cmd/ksh93/sh/nvtype.c +++ b/src/cmd/ksh93/sh/nvtype.c @@ -729,11 +729,8 @@ void nv_addtype(Namval_t *np, const char *optstr, void *op, size_t optsz) { Namval_t *mp, *bp; char *name; - if (optstr) { - cp->optstring = optstr; - } else { - cp->optstring = sh_opttype; - } + assert(optstr); + cp->optstring = optstr; memcpy(dp, op, optsz); cp->optinfof = dp; cp->tp = np;