(update_goal_chain): Reset FILE to G->file after the double-colon loop so 3.70.3
authorRoland McGrath <roland@redhat.com>
Fri, 22 Apr 1994 21:58:26 +0000 (21:58 +0000)
committerRoland McGrath <roland@redhat.com>
Fri, 22 Apr 1994 21:58:26 +0000 (21:58 +0000)
it is never null for following code.

remake.c

index a280b52..c7b183c 100644 (file)
--- 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,