Skip to content

Commit

Permalink
p4est_file: Fix wrong NULL check
Browse files Browse the repository at this point in the history
  • Loading branch information
tim-griesbach committed Mar 1, 2024
1 parent cc94430 commit 15690a3
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/p4est_io.c
Original file line number Diff line number Diff line change
Expand Up @@ -601,11 +601,7 @@ p4est_file_error_cleanup (sc_MPI_File * file)
{
/* no error checking since we are called under an error condition */
P4EST_ASSERT (file != NULL);
#ifdef P4EST_ENABLE_MPIIO
if (*file != sc_MPI_FILE_NULL) {
#else
if ((*file)->file != sc_MPI_FILE_NULL) {
#endif
/* We do not use here the libsc closing function since we do not perform
* error checking in this function that is only called if we had already
* an error.
Expand Down

0 comments on commit 15690a3

Please sign in to comment.