(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:
parent
392ad15567
commit
276c188655
1 changed files with 1 additions and 1 deletions
|
@ -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));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue