diff options
author | Magnus Lundborg <lundborg.magnus@gmail.com> | 2013-01-30 15:20:30 (GMT) |
---|---|---|
committer | Magnus Lundborg <lundborg.magnus@gmail.com> | 2013-01-30 15:20:30 (GMT) |
commit | a02d030e2862feacecf580c909a25adce8ef64ed (patch) | |
tree | 9f192a331a492bdb389e27033231b693ab928013 /src/lib/tng_io.c | |
parent | 20f305f0c6577be1c95de373d0fe07998334234d (diff) |
Fix bug in chain_name_of_particle_get
Diffstat (limited to 'src/lib/tng_io.c')
-rw-r--r-- | src/lib/tng_io.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/tng_io.c b/src/lib/tng_io.c index e6f2956..fd44205 100644 --- a/src/lib/tng_io.c +++ b/src/lib/tng_io.c @@ -5573,7 +5573,7 @@ tng_function_status tng_chain_name_of_particle_nr_get { return(TNG_FAILURE); } - if(!atom->residue || atom->residue->chain) + if(!atom->residue || !atom->residue->chain) { return(TNG_FAILURE); } |