From: Markus Armbruster Date: Tue, 6 Apr 2004 18:47:54 +0000 (+0000) Subject: (snxtitem): Assigning NS_UNDEF to NP->type is an application domain X-Git-Tag: v4.2.15~49 X-Git-Url: http://git.pond.sub.org/?p=empserver;a=commitdiff_plain;h=276c188655a32f9108d326246fda03cf49f15faf (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. --- 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));