Clarify an ambiguous 'else' introduced by a recent commit.

This commit is contained in:
Josef Karthauser 2000-12-17 17:03:05 +00:00
parent f3c47f54c6
commit 5e5f382630

View File

@ -550,10 +550,10 @@ void fillin_program(prog_t *p)
*/
if(!makeobj && !p->objdir && p->srcdir) {
snprintf(line, sizeof line, "%s/%s", objprefix, p->realsrcdir);
if (is_dir(line))
if (is_dir(line)) {
if ((p->objdir = strdup(line)) == NULL)
out_of_memory();
else
} else
p->objdir = p->realsrcdir;
}
/*