summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'main.c')
-rw-r--r--main.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/main.c b/main.c
index 5118d97..4b36015 100644
--- a/main.c
+++ b/main.c
@@ -862,7 +862,7 @@ main (argc, argv, envp)
{
register struct file *f = d->file;
if (f->double_colon)
- do
+ for (f = f->double_colon; f != NULL; f = f->prev)
{
if (f->deps == 0 && f->cmds != 0)
{
@@ -890,9 +890,7 @@ main (argc, argv, envp)
break;
}
- f = f->prev;
}
- while (f != NULL);
if (f == NULL || !f->double_colon)
{
if (makefile_mtimes == 0)