diff options
author | Magnus Lundborg <lundborg.magnus@gmail.com> | 2013-11-04 14:56:39 (GMT) |
---|---|---|
committer | Magnus Lundborg <lundborg.magnus@gmail.com> | 2013-11-04 14:56:39 (GMT) |
commit | 31cc82c2a200fa1664330ae06acde32df7efc49b (patch) | |
tree | 0290ab7ad16b64f3e2fc79692e3a984c54a1e92f /src | |
parent | 65443992d81a8845ba3597620d84e8652e83a254 (diff) |
Initialise variables in for loop.
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/tng_io.c | 2 |
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++) |