Skip to content

Commit

Permalink
p4est.c: fix warning about impossible situation
Browse files Browse the repository at this point in the history
  • Loading branch information
cburstedde committed Jan 19, 2024
1 parent 23ff9b5 commit e8b82ab
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/p4est.c
Original file line number Diff line number Diff line change
Expand Up @@ -2921,6 +2921,8 @@ p4est_partition_for_coarsening (p4est_t * p4est,
P4EST_ASSERT (num_sends == old_num_sends);
#endif

send_requests = NULL;
parent_send = NULL;
if (num_sends > 0) { /* if this process sends messages */
/* allocate send messages */
send_requests = P4EST_ALLOC (MPI_Request, num_sends);
Expand Down

0 comments on commit e8b82ab

Please sign in to comment.