diff options
author | Magnus Lundborg <lundborg.magnus@gmail.com> | 2013-12-03 15:20:37 (GMT) |
---|---|---|
committer | Magnus Lundborg <lundborg.magnus@gmail.com> | 2013-12-03 15:20:37 (GMT) |
commit | 988a65e6f426b701a616c89e37fafedc6e6a7e39 (patch) | |
tree | efcd965b147f00b0c917b86ec920c45db011cab3 | |
parent | 5ce8e5a949c987d52c6bf1cc1b58e6260b48b002 (diff) |
Bug fix.
-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) { |