Skip to content

Commit

Permalink
fix some issues pointed out by coverity
Browse files Browse the repository at this point in the history
  • Loading branch information
zingale committed Jan 28, 2024
1 parent a4d7ab4 commit 27d6723
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion neutrinos/sneut5.H
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ sneutf_t get_sneut_factors(Real den, Real temp, Real abar, Real zbar) {

constexpr Real con1 = 1.0e0_rt/5.9302e0_rt;

sneutf_t sf;
sneutf_t sf{};

sf.den = den;
sf.temp = temp;
Expand Down
1 change: 1 addition & 0 deletions unit_test/burn_cell/burn_cell.H
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ void burn_cell_c()
burn_state.j = 0;
burn_state.k = 0;
burn_state.T_fixed = -1.0_rt;
burn_state.time = 0.0;

// normalize -- just in case

Expand Down

0 comments on commit 27d6723

Please sign in to comment.