Fix the code that selects the default binary type if the actual type can't

be determined.

PR:		bin/34698
Submitted by:	(in part) Stefan Farfeleder <e0026813@stud3.tuwien.ac.at>
MFC after:	1 weeks
This commit is contained in:
des 2002-02-08 12:42:55 +00:00
parent ef4e4ffaf5
commit f73a5022d8

View File

@ -120,10 +120,10 @@ set_etype(void) {
if (!strcmp(funcs->type, progt))
break;
if (funcs == NULL) {
warn("Execution type %s is not supported -- using FreeBSD a.out\n",
progt);
if (funcs->type == NULL) {
funcs = &ex_types[0];
warn("Execution type %s is not supported -- using %s\n",
progt, funcs->type);
}
return funcs;
}