diff options
author | Magnus Lundborg <lundborg.magnus@gmail.com> | 2013-10-25 13:04:04 (GMT) |
---|---|---|
committer | Magnus Lundborg <lundborg.magnus@gmail.com> | 2013-10-25 13:04:04 (GMT) |
commit | 6218a653501521c1867f5bea2435315cf27e3d30 (patch) | |
tree | 3678b54aef7a065eb4639c2b436e3ba94eba2f5e | |
parent | 07d432083eef8914155cb21e9fb3bedc0e7fd5c8 (diff) |
Abort data writing if the data vector is NULL.
-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) |