Skip to content

Commit

Permalink
Remove double-allocation that may lead to crash in some GNU builds
Browse files Browse the repository at this point in the history
  • Loading branch information
pprcht committed Aug 29, 2024
1 parent 6712175 commit 5ca82fe
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/parsing/parse_xtbinput.f90
Original file line number Diff line number Diff line change
Expand Up @@ -715,9 +715,6 @@ subroutine read_xtbdatablock(file,i,blk)
call get_xtb_keyvalue(kvdum,rawline,io)
if (io == 0) then
call blk%addkv(kvdum)
if(.not.allocated(blk%kv_list(blk%nkv)%value_rawa))then
allocate(blk%kv_list(blk%nkv)%value_rawa, source=kvdum%value_rawa)
endif
end if
end do

Expand Down

0 comments on commit 5ca82fe

Please sign in to comment.