Skip to content

Commit c97bd7a

Browse files
Ian PorterIan Porter
authored andcommitted
Fix for undefined variable in test#26
Fixes the undefined variable error_cnt for test #26 when the json%validate returns a true is_valid statement.
1 parent a2af58c commit c97bd7a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/tests/jf_test_26.F90

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ subroutine test_26(error_cnt)
2222
logical(lk) :: is_valid
2323
character(kind=CK,len=:),allocatable :: error_msg
2424

25+
error_cnt = 0
26+
2527
call f%initialize() ! specify whatever init options you want.
2628

2729
write(error_unit,'(A)') 'adding data to json_file...'
@@ -76,7 +78,7 @@ program jf_test_26
7678
use jf_test_26_mod , only: test_26
7779
implicit none
7880
integer :: n_errors
79-
n_errors = 0
81+
8082
call test_26(n_errors)
8183
if (n_errors /= 0) stop 1
8284

0 commit comments

Comments
 (0)