summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMagnus Lundborg <lundborg.magnus@gmail.com>2013-11-04 14:56:39 (GMT)
committerMagnus Lundborg <lundborg.magnus@gmail.com>2013-11-04 14:56:39 (GMT)
commit31cc82c2a200fa1664330ae06acde32df7efc49b (patch)
tree0290ab7ad16b64f3e2fc79692e3a984c54a1e92f /src
parent65443992d81a8845ba3597620d84e8652e83a254 (diff)
Initialise variables in for loop.
Diffstat (limited to 'src')
-rw-r--r--src/lib/tng_io.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib/tng_io.c b/src/lib/tng_io.c
index 383b414..d7bc988 100644
--- a/src/lib/tng_io.c
+++ b/src/lib/tng_io.c
@@ -7818,6 +7818,8 @@ tng_function_status DECLSPECDLLEXPORT tng_molsystem_bonds_get
cnt = 0;
for(i = 0; i < tng_data->n_molecules; i++)
{
+ mol = &tng_data->molecules[i];
+ mol_cnt = molecule_cnt_list[i];
for(j = 0; j < mol_cnt; j++)
{
for(k = 0; k < mol->n_bonds; k++)
contact: Jan Huwald // Impressum