]> gcc.gnu.org Git - gcc.git/commitdiff
modula2: gcc/m2/gm2-libs/M2Dependent.mod initialize all record fields.
authorGaius Mulley <gaiusmod2@gmail.com>
Tue, 24 Oct 2023 20:13:01 +0000 (21:13 +0100)
committerGaius Mulley <gaiusmod2@gmail.com>
Tue, 24 Oct 2023 20:13:01 +0000 (21:13 +0100)
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: Gaius Mulley <gaiusmod2@gmail.com>
gcc/m2/gm2-libs/M2Dependent.mod

index 47bbf13aed4c707bbdbebff26d43bbad62416bb2..911113fc00bc93dd8ba3086e3cecae6c1964f783 100644 (file)
@@ -91,6 +91,9 @@ BEGIN
    mptr^.init := init ;
    mptr^.fini := fini ;
    mptr^.dependency.proc := dependencies ;
+   mptr^.dependency.forced := FALSE ;
+   mptr^.dependency.forc := FALSE ;
+   mptr^.dependency.appl := FALSE ;
    mptr^.dependency.state := unregistered ;
    mptr^.prev := NIL ;
    mptr^.next := NIL ;
This page took 0.072948 seconds and 5 git commands to generate.