Skip to content

Commit 9c33417

Browse files
committed
fix: do not touch unallocated dependency array
1 parent 49eaa36 commit 9c33417

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/fpm_targets.f90

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1519,8 +1519,8 @@ subroutine library_targets_to_deps(model, targets, target_ID)
15191519
integer, allocatable, intent(out) :: target_ID(:)
15201520

15211521
integer :: it, ip, n
1522-
1523-
n = size(model%deps%dep)
1522+
1523+
n = model%deps%ndep
15241524
allocate(target_ID(n), source=0)
15251525

15261526
do it = 1, size(targets)

0 commit comments

Comments
 (0)