From 276c188655a32f9108d326246fda03cf49f15faf Mon Sep 17 00:00:00 2001 From: Markus Armbruster Date: Tue, 6 Apr 2004 18:47:54 +0000 Subject: [PATCH] (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. --- src/lib/subs/snxtitem.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/subs/snxtitem.c b/src/lib/subs/snxtitem.c index ca18c35ef..80e61e524 100644 --- a/src/lib/subs/snxtitem.c +++ b/src/lib/subs/snxtitem.c @@ -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)); -- 2.43.0