(natargp): Only return countries in use. Unused countries could lead

to confusing output and were useless except perhaps for the edit
command.
This commit is contained in:
Markus Armbruster 2006-01-06 21:16:49 +00:00
parent ad05ff70a1
commit 1b9641d6d1

View file

@ -70,7 +70,7 @@ natargp(char *arg, char *prompt)
}
}
np = getnatp(n);
if (!np) {
if (!np || np->nat_stat == STAT_UNUSED) {
pr("Country '%s' doesn't exist.\n", arg);
return NULL;
}