summaryrefslogtreecommitdiff
path: root/src/read.c
diff options
context:
space:
mode:
authorDmitry Goncharov <dgoncharov@users.sf.net>2022-09-25 17:09:08 -0400
committerPaul Smith <psmith@gnu.org>2022-09-25 17:09:08 -0400
commit6c87f3fb85311eb845ce437b1d31e8b7443a9233 (patch)
tree0db6220b2f3d91485374e837956d8c89a912c875 /src/read.c
parent38116baee96bdb4ad8feb3134b64098997adff8e (diff)
downloadmake-git-6c87f3fb85311eb845ce437b1d31e8b7443a9233.tar.gz
[SV 63100] Set the floc of every created goal dep struct
* src/read.c (eval): Initialize the goaldep floc pointer. * tests/scripts/features/loadapi: Verify that the floc is set after unloading and reloading dynamic objects.
Diffstat (limited to 'src/read.c')
-rw-r--r--src/read.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/read.c b/src/read.c
index e94e75bc..79315503 100644
--- a/src/read.c
+++ b/src/read.c
@@ -984,6 +984,7 @@ eval (struct ebuffer *ebuf, int set_default)
/* Otherwise add it to the list to be rebuilt. */
deps = alloc_goaldep ();
deps->next = read_files;
+ deps->floc = ebuf->floc;
read_files = deps;
deps->file = f;
}