Skip to content

Commit 6231b2c

Browse files
committed
Fix show-model:
Init the `link_libraries` array length as 0
1 parent 95dbca1 commit 6231b2c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/fpm_sources.f90

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ subroutine add_sources_from_dir(sources,directory,scope,with_executables,recurse
9696
if (allocated(error)) return
9797

9898
dir_sources(i)%unit_scope = scope
99+
allocate(dir_sources(i)%link_libraries(0))
99100

100101
! Exclude executables unless specified otherwise
101102
exclude_source(i) = (dir_sources(i)%unit_type == FPM_UNIT_PROGRAM)

0 commit comments

Comments
 (0)