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

This commit is contained in:
joe 2000-12-17 17:03:05 +00:00
parent 702e01fe1e
commit 8ec6857b99

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;
}
/*