Skip to content

Commit 8b958a8

Browse files
committed
initialize allocatable CHARACTER variables before they are used in a comparison
1 parent 5617e65 commit 8b958a8

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/fpm_sources.f90

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,9 @@ subroutine get_executable_source_dirs(exe_dirs,executables)
200200
integer :: i, n
201201

202202
n = 0
203+
do i=1,size(executables)
204+
dirs_temp(i)%s=' '
205+
enddo
203206
do i=1,size(executables)
204207
if (.not.(executables(i)%source_dir .in. dirs_temp)) then
205208

0 commit comments

Comments
 (0)