diff options
author | Magnus Lundborg <magnus.lundborg@scilifelab.se> | 2012-12-10 09:16:05 (GMT) |
---|---|---|
committer | Magnus Lundborg <magnus.lundborg@scilifelab.se> | 2012-12-10 09:16:05 (GMT) |
commit | cd1bbb5b624c4fb99d45e1aa2b7586be2c707716 (patch) | |
tree | 8672c94f55c9356cf9d2bdceca8fc6f2054ca9d9 /src | |
parent | 4050fd256d10270e98a4a70138420c12bd380da1 (diff) |
Fix missing initialisation
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/tng_io.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/lib/tng_io.c b/src/lib/tng_io.c index dcf1098..14bdfed 100644 --- a/src/lib/tng_io.c +++ b/src/lib/tng_io.c @@ -4813,8 +4813,8 @@ tng_function_status tng_molecule_add(tng_trajectory_t tng_data, tng_bool found_id = TRUE; new_molecules = (tng_molecule_t)realloc(tng_data->molecules, - sizeof(struct tng_molecule) * - (tng_data->n_molecules + 1)); + sizeof(struct tng_molecule) * + (tng_data->n_molecules + 1)); if(!new_molecules) { @@ -5202,6 +5202,7 @@ tng_function_status tng_residue_atom_add(tng_trajectory_t tng_data, tng_function_status tng_molecule_init(tng_molecule_t molecule) { + molecule->quaternary_str = 1; molecule->name = 0; molecule->n_chains = 0; molecule->chains = 0; |