Skip to content

Commit

Permalink
Merge pull request #711 from degawa/fix-stat-in-parse_header
Browse files Browse the repository at this point in the history
fixed unassigned value to a intent(out) variable in `parse_header`
  • Loading branch information
jvdp1 committed May 7, 2023
2 parents c004bbe + 186c1ae commit 061512e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/stdlib_io_npy_load.fypp
Expand Up @@ -185,6 +185,9 @@ contains

integer :: minor

! stat should be zero if no error occurred
stat = 0

if (header(1:1) /= magic_number) then
stat = 1
msg = "Expected z'93' but got z'"//to_string(ichar(header(1:1)))//"' "//&
Expand Down

0 comments on commit 061512e

Please sign in to comment.