summaryrefslogtreecommitdiff
path: root/src/lib/tng_io.c
diff options
context:
space:
mode:
authorMagnus Lundborg <lundborg.magnus@gmail.com>2013-12-04 07:44:21 (GMT)
committerMagnus Lundborg <lundborg.magnus@gmail.com>2013-12-04 07:44:21 (GMT)
commit334471b5bf446bd444e25beaad26a982986d95f8 (patch)
tree3fc3269d9d56cf16e36f31e2ad7dc8b8b10fb569 /src/lib/tng_io.c
parentbfbc5b8fd9196d1d46cbd0c7c77e180013c2f135 (diff)
Fixed bug in last commit.
Diffstat (limited to 'src/lib/tng_io.c')
-rw-r--r--src/lib/tng_io.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/tng_io.c b/src/lib/tng_io.c
index 509844c..72e0c08 100644
--- a/src/lib/tng_io.c
+++ b/src/lib/tng_io.c
@@ -11152,6 +11152,8 @@ tng_function_status DECLSPECDLLEXPORT tng_frame_set_of_frame_find
frame_set = &tng_data->current_trajectory_frame_set;
+ tng_block_init(&block);
+
if(tng_data->current_trajectory_frame_set_input_file_pos < 0)
{
file_pos = tng_data->first_trajectory_frame_set_input_file_pos;
@@ -11182,7 +11184,6 @@ tng_function_status DECLSPECDLLEXPORT tng_frame_set_of_frame_find
n_frames_per_frame_set = tng_data->frame_set_n_frames;
long_stride_length = tng_data->long_stride_length;
medium_stride_length = tng_data->medium_stride_length;
- tng_block_init(&block);
if(tng_first_frame_nr_of_next_frame_set_get(tng_data, &temp_frame) ==
TNG_SUCCESS)
contact: Jan Huwald // Impressum