From 76589b8e3cc9f93d3ec6ab96aa6688507376dd8f Mon Sep 17 00:00:00 2001 From: "John S. Urban" Date: Tue, 13 Jul 2021 16:04:01 -0400 Subject: settings%args was used unallocated --- src/fpm.f90 | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/fpm.f90 b/src/fpm.f90 index c670378..a80f1f6 100644 --- a/src/fpm.f90 +++ b/src/fpm.f90 @@ -423,11 +423,20 @@ subroutine cmd_run(settings,test) do i=1,size(executables) if (exists(executables(i)%s)) then if(settings%runner .ne. ' ')then - call run(settings%runner//' '//executables(i)%s//" "//settings%args, & + if(.not.allocated(settings%args))then + call run(settings%runner//' '//executables(i)%s, & echo=settings%verbose, exitstat=stat(i)) + else + call run(settings%runner//' '//executables(i)%s//" "//settings%args, & + echo=settings%verbose, exitstat=stat(i)) + endif else - call run(executables(i)%s//" "//settings%args,echo=settings%verbose, & + if(.not.allocated(settings%args))then + call run(executables(i)%s,echo=settings%verbose, exitstat=stat(i)) + else + call run(executables(i)%s//" "//settings%args,echo=settings%verbose, & exitstat=stat(i)) + endif endif else write(stderr,*)'fpm::run',executables(i)%s,' not found' -- cgit v1.2.3