Skip to content
Snippets Groups Projects
Commit 23ddfa1b authored by Gaius Mulley's avatar Gaius Mulley
Browse files

modula2: gcc/m2/gm2-libs/M2Dependent.mod initialize all record fields.


Initialize all sub fields within mptr.  Valgrind detected
uninitialized fields in M2Dependent.mod.  CreateModule must ensure all
sub fields are initialized.

gcc/m2/ChangeLog:

	* gm2-libs/M2Dependent.mod (CreateModule): Initialize all
	dependency fields for DependencyList.

Signed-off-by: default avatarGaius Mulley <gaiusmod2@gmail.com>
parent 1fa7bcfd
No related branches found
No related tags found
No related merge requests found
...@@ -91,6 +91,9 @@ BEGIN ...@@ -91,6 +91,9 @@ BEGIN
mptr^.init := init ; mptr^.init := init ;
mptr^.fini := fini ; mptr^.fini := fini ;
mptr^.dependency.proc := dependencies ; mptr^.dependency.proc := dependencies ;
mptr^.dependency.forced := FALSE ;
mptr^.dependency.forc := FALSE ;
mptr^.dependency.appl := FALSE ;
mptr^.dependency.state := unregistered ; mptr^.dependency.state := unregistered ;
mptr^.prev := NIL ; mptr^.prev := NIL ;
mptr^.next := NIL ; mptr^.next := NIL ;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment