Skip to content

Commit f54f5cb

Browse files
committed
fix issue #375: a small qol change
1 parent ad16060 commit f54f5cb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/fpm.f90

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -511,7 +511,7 @@ subroutine cmd_run(settings,test)
511511
! Enumerate executable targets to run
512512
col_width = -1
513513
found(:) = .false.
514-
allocate(executables(0))
514+
allocate(executables(size(settings%name)))
515515
do i=1,size(targets)
516516

517517
exe_target => targets(i)%ptr
@@ -538,7 +538,7 @@ subroutine cmd_run(settings,test)
538538

539539
found(j) = .true.
540540
exe_cmd%s = exe_target%output_file
541-
executables = [executables, exe_cmd]
541+
executables(j) = exe_cmd
542542

543543
end if
544544

0 commit comments

Comments
 (0)