diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/lib/tng_io.c | 6 | 
1 files changed, 2 insertions, 4 deletions
| diff --git a/src/lib/tng_io.c b/src/lib/tng_io.c index 2cfbc05..8a8a9dd 100644 --- a/src/lib/tng_io.c +++ b/src/lib/tng_io.c @@ -7274,6 +7274,7 @@ tng_function_status DECLSPECDLLEXPORT tng_molecule_chain_w_id_add                   tng_chain_t *chain)  {      int64_t i; +    tng_chain_t new_chains;      tng_function_status stat;      stat = tng_check_trajectory_container(tng_data); @@ -7284,8 +7285,6 @@ tng_function_status DECLSPECDLLEXPORT tng_molecule_chain_w_id_add          return(stat);      } -    tng_chain_t new_chains; -      new_chains = realloc(molecule->chains,                           sizeof(struct tng_chain) *                           (molecule->n_chains + 1)); @@ -14515,6 +14514,7 @@ tng_function_status DECLSPECDLLEXPORT tng_time_get_str                   char *time)  {      struct tm *time_data; +    time_t secs;      tng_function_status stat;      stat = tng_check_trajectory_container(tng_data); @@ -14525,8 +14525,6 @@ tng_function_status DECLSPECDLLEXPORT tng_time_get_str          return(stat);      } -    time_t secs; -      secs = tng_data->time;      time_data = localtime(&secs); /* Returns a statically allocated variable. */ | 
