summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--remake.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/remake.c b/remake.c
index a280b52..c7b183c 100644
--- a/remake.c
+++ b/remake.c
@@ -179,6 +179,9 @@ update_goal_chain (goals, makefiles)
break;
}
+ /* Reset FILE since it is null at the end of the loop. */
+ file = g->file;
+
if (stop || !any_not_updated)
{
/* If we have found nothing whatever to do for the goal,