aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLKedward <laurence.kedward@bristol.ac.uk>2020-09-07 15:33:36 +0100
committerLKedward <laurence.kedward@bristol.ac.uk>2020-09-07 15:33:36 +0100
commitf32d6c3c6129630cf416e8d91298e3a5840001a3 (patch)
treee23cf5e83f06debc5d8a42f1e1009ca3d7b2f2ed
parent8b1e4a65fbd34dd4d98b117c537b385bd1765d30 (diff)
downloadfpm-f32d6c3c6129630cf416e8d91298e3a5840001a3.tar.gz
fpm-f32d6c3c6129630cf416e8d91298e3a5840001a3.zip
Fix: allocation for default library.
-rw-r--r--fpm/src/fpm.f901
1 files changed, 1 insertions, 0 deletions
diff --git a/fpm/src/fpm.f90 b/fpm/src/fpm.f90
index def32dd..1bd4c7f 100644
--- a/fpm/src/fpm.f90
+++ b/fpm/src/fpm.f90
@@ -33,6 +33,7 @@ end if
! Populate library in case we find the default src directory
if (.not.allocated(package%library) .and. exists("src")) then
+ allocate(package%library)
call default_library(package%library)
end if