Skip to content

Commit

Permalink
get_os: initialize values (ifx error)
Browse files Browse the repository at this point in the history
  • Loading branch information
perazz committed Dec 13, 2023
1 parent 7b7afc2 commit b74b9cd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/fpm_environment.f90
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@ integer function get_os_type() result(r)

first_run = .false.
r = OS_UNKNOWN
length = 0
rc = 0

! Check environment variable `OSTYPE`.
call get_environment_variable('OSTYPE', val, length, rc)
Expand Down

0 comments on commit b74b9cd

Please sign in to comment.