Commit 0d0f419
committed
[flang-rt] Fixed uninitialized class member variable
valgrind complained that `OpenStatementState::pathLength_` was used before it
was initialized, when a file was opened with `status='scratch'`. The code
seems to expect that `pathLengh_` should be initialized to 0, so added default
initialization to the declaration.1 parent b22fc43 commit 0d0f419
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
627 | 627 | | |
628 | 628 | | |
629 | 629 | | |
630 | | - | |
| 630 | + | |
631 | 631 | | |
632 | 632 | | |
633 | 633 | | |
| |||
0 commit comments