diff options
-rw-r--r-- | include/tng_io.h | 4 | ||||
-rw-r--r-- | src/lib/tng_io.c | 3 |
2 files changed, 5 insertions, 2 deletions
diff --git a/include/tng_io.h b/include/tng_io.h index a63d229..7be9c12 100644 --- a/include/tng_io.h +++ b/include/tng_io.h @@ -4675,7 +4675,9 @@ tng_function_status DECLSPECDLLEXPORT tng_util_frame_current_compression_get * must be initialised before using it. * @pre \code next_frame != 0 \endcode The pointer to the next frame must not * be NULL. - * @pre \code data_block_ids_in_next_frame != 0 \endcode The pointer to the + * @pre \code n_data_blocks_in_next_frame != 0 \endcode The pointer to + * n_data_blocks_in_next_frame must not be NULL. + * @pre \code *data_block_ids_in_next_frame == 0 \endcode The pointer to the * list of data block IDs must not be NULL. * @pre \code n_requested_data_block_ids == 0 || requested_data_block_ids != 0 \endcode * If the number of requested data blocks != 0 then the array of data block IDs must not be NULL. diff --git a/src/lib/tng_io.c b/src/lib/tng_io.c index 9866a80..eb8df68 100644 --- a/src/lib/tng_io.c +++ b/src/lib/tng_io.c @@ -17925,7 +17925,8 @@ tng_function_status DECLSPECDLLEXPORT tng_util_trajectory_next_frame_present_dat TNG_ASSERT(tng_data, "TNG library: Trajectory container not properly setup."); TNG_ASSERT(next_frame, "TNG library: The pointer to the next frame must not be NULL."); - TNG_ASSERT(data_block_ids_in_next_frame == 0, "TNG library: The pointer to the list of data block IDs must be NULL."); + TNG_ASSERT(n_data_blocks_in_next_frame, "TNG library: The pointer to n_data_blocks_in_next_frame must not be NULL."); + TNG_ASSERT(*data_block_ids_in_next_frame == 0, "TNG library: The pointer to the list of data block IDs must be NULL."); if(n_requested_data_block_ids) { |