diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/tng_io.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/lib/tng_io.c b/src/lib/tng_io.c index 8a8a9dd..89f9b0d 100644 --- a/src/lib/tng_io.c +++ b/src/lib/tng_io.c @@ -15122,6 +15122,11 @@ tng_function_status DECLSPECDLLEXPORT tng_util_generic_write return(stat); } + if(values == 0) + { + return(TNG_FAILURE); + } + frame_set = &tng_data->current_trajectory_frame_set; if(frame_nr < 0) |