(snxtitem): Assigning NS_UNDEF to NP->type is an application domain

type error not reflected in C.  The former is a selection type, the
latter is a file type.  Harmless, as the variable is overwritten on
all paths to successful return.
This commit is contained in:
Markus Armbruster 2004-04-06 18:47:54 +00:00
parent 392ad15567
commit 276c188655

View file

@ -60,7 +60,7 @@ snxtitem(register struct nstr_item *np, int type, s_char *str)
s_char prompt[128];
s_char buf[1024];
np->type = NS_UNDEF;
np->type = EF_BAD;
np->sel = NS_UNDEF;
if (str == 0) {
sprintf(prompt, "%s(s)? ", ef_nameof(type));