Flag an error and remove the program from the list if there is

no source directory or no objects can be determined.

Initialise a structure variable.
This commit is contained in:
Josef Karthauser 2001-01-10 13:27:38 +00:00
parent e0a5f7c99e
commit 617b818021
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=70880

View File

@ -345,7 +345,7 @@ void add_prog(char *progname)
if(p1 == NULL) progs = p2;
else p1->next = p2;
p2->ident = p2->srcdir = p2->objdir = NULL;
p2->ident = p2->srcdir = p2->realsrcdir = p2->objdir = NULL;
p2->links = p2->objs = p2->keeplist = NULL;
p2->buildopts = NULL;
p2->goterror = 0;
@ -578,6 +578,9 @@ void fillin_program(prog_t *p)
if(!p->objs && verbose)
warnx("%s: %s: warning: could not find any .o files",
infilename, p->name);
if(!p->srcdir || !p->objs)
p->goterror = 1;
}
void fillin_program_objs(prog_t *p, char *path)