Skip to content

Commit

Permalink
BUG: Fix pointer for string version.
Browse files Browse the repository at this point in the history
  • Loading branch information
MilanSkocic committed Jan 10, 2024
1 parent 8d089f7 commit 24ffdbf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/codata_version.f90
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ function capi_get_version()bind(c,name="codata_get_version")result(cptr)
allocate(character(len=len(fptr)+1) :: version_c)

version_c = fptr // c_null_char
cptr = c_loc(fptr)
cptr = c_loc(version_c)
end function

end module codata__version

0 comments on commit 24ffdbf

Please sign in to comment.