Skip to content

Commit 186c1ae

Browse files
committed
fixed unassigned value to a intent(out) variable
1 parent c004bbe commit 186c1ae

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/stdlib_io_npy_load.fypp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,9 @@ contains
185185

186186
integer :: minor
187187

188+
! stat should be zero if no error occurred
189+
stat = 0
190+
188191
if (header(1:1) /= magic_number) then
189192
stat = 1
190193
msg = "Expected z'93' but got z'"//to_string(ichar(header(1:1)))//"' "//&

0 commit comments

Comments
 (0)