]> git.pond.sub.org Git - empserver/commitdiff
(snxtitem): Assigning NS_UNDEF to NP->type is an application domain
authorMarkus Armbruster <armbru@pond.sub.org>
Tue, 6 Apr 2004 18:47:54 +0000 (18:47 +0000)
committerMarkus Armbruster <armbru@pond.sub.org>
Tue, 6 Apr 2004 18:47:54 +0000 (18:47 +0000)
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

index ca18c35efcc0ce158c3fea7124d5ba5c4bbf9db4..80e61e524c3a3845b0ec17d32f64afa0caaa491b 100644 (file)
@@ -60,7 +60,7 @@ snxtitem(register struct nstr_item *np, int type, s_char *str)
     s_char prompt[128];
     s_char buf[1024];
 
     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));
     np->sel = NS_UNDEF;
     if (str == 0) {
        sprintf(prompt, "%s(s)? ", ef_nameof(type));