summaryrefslogtreecommitdiff
path: root/src/lib/tng_io.c
diff options
context:
space:
mode:
authorMagnus Lundborg <lundborg.magnus@gmail.com>2013-01-30 15:20:30 (GMT)
committerMagnus Lundborg <lundborg.magnus@gmail.com>2013-01-30 15:20:30 (GMT)
commita02d030e2862feacecf580c909a25adce8ef64ed (patch)
tree9f192a331a492bdb389e27033231b693ab928013 /src/lib/tng_io.c
parent20f305f0c6577be1c95de373d0fe07998334234d (diff)
Fix bug in chain_name_of_particle_get
Diffstat (limited to 'src/lib/tng_io.c')
-rw-r--r--src/lib/tng_io.c2
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);
}
contact: Jan Huwald // Impressum