From 3c9e8b266a12ee95f479461c9b425833fa7d134c Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Fri, 22 Apr 1994 21:58:26 +0000 Subject: [PATCH] (update_goal_chain): Reset FILE to G->file after the double-colon loop so it is never null for following code. --- remake.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/remake.c b/remake.c index a280b52e..c7b183c4 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,