Skip to content

Commit

Permalink
Remove allocatable from error message which wasn't allocated
Browse files Browse the repository at this point in the history
  • Loading branch information
sstgfbc committed Mar 8, 2022
1 parent 10534ba commit c519193
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/error_base.F90
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ module w90_error_base
!! Codify error state with integer code and human readable string
type w90_error_type
integer :: code
character(len=:), allocatable :: message
character(len=256) :: message
contains
final :: untrapped_error
end type w90_error_type
Expand All @@ -44,7 +44,7 @@ subroutine set_base_error(err, mesg, code)
character(len=*), intent(in) :: mesg
integer, intent(in) :: code
allocate (err)
err%message = mesg
err%message = trim(mesg)
err%code = code
end subroutine set_base_error

Expand Down

0 comments on commit c519193

Please sign in to comment.