Skip to content

Commit

Permalink
fix: diag_manager uninitialized return value (NOAA-GFDL#1484)
Browse files Browse the repository at this point in the history
  • Loading branch information
rem1776 authored Mar 29, 2024
1 parent da2cf5f commit a63354a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions diag_manager/fms_diag_field_object.F90
Original file line number Diff line number Diff line change
Expand Up @@ -1884,6 +1884,8 @@ function check_for_slices(field, diag_axis, var_size) &
logical :: rslt
integer :: i !< For do loops

rslt = .false.

if (.not. field%has_axis_ids()) then
rslt = .false.
return
Expand Down

0 comments on commit a63354a

Please sign in to comment.