From c268d9a3ac70c8cb22b612281d3ea2b3b4828d35 Mon Sep 17 00:00:00 2001
From: Giovanni Bussi <giovanni.bussi@gmail.com>
Date: Wed, 15 Jan 2020 23:48:03 +0100
Subject: [PATCH] Fixed #545

---
 CHANGES/v2.4.md        | 1 +
 src/cltools/Driver.cpp | 1 +
 2 files changed, 2 insertions(+)

diff --git a/CHANGES/v2.4.md b/CHANGES/v2.4.md
index 7ea50e424..912a46c53 100644
--- a/CHANGES/v2.4.md
+++ b/CHANGES/v2.4.md
@@ -244,5 +244,6 @@ For users:
   - More robust backup for output files when running over multiple processes
   - Fixed a regression in the performances of GEOMETRY based flexible hills in \ref METAD and \ref PBMETAD
   - Fixed \issue{538}.
+  - Fixed potential issue with VMD plugins from 1.9.4 (\issue{545}, thanks to Lixin Sun).
 
 
diff --git a/src/cltools/Driver.cpp b/src/cltools/Driver.cpp
index e01d22d27..fc76452dd 100644
--- a/src/cltools/Driver.cpp
+++ b/src/cltools/Driver.cpp
@@ -389,6 +389,7 @@ int Driver<real>::main(FILE* in,FILE*out,Communicator& pc) {
 // it is necessary in order to store the pointer to ts_in.coords
   std::unique_ptr<float[]> ts_in_coords;
   ts_in.coords=ts_in_coords.get();
+  ts_in.velocities=NULL;
   ts_in.A=-1; // we use this to check whether cell is provided or not
 #endif
 
-- 
GitLab