From 2d4411130ff12b6247fbe99d90e4c54822d503bb Mon Sep 17 00:00:00 2001 From: Axel Kohlmeyer Date: Fri, 28 Dec 2018 01:01:07 -0500 Subject: [PATCH] ensure that binsize is initialized in all cases --- src/atom.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/atom.cpp b/src/atom.cpp index 72bdc8a0e7..315097261b 100644 --- a/src/atom.cpp +++ b/src/atom.cpp @@ -1886,7 +1886,7 @@ void Atom::setup_sort_bins() // check if neighbor cutoff = 0.0 // and in that case, disable sorting - double binsize; + double binsize = 0.0; if (userbinsize > 0.0) binsize = userbinsize; else if (neighbor->cutneighmax > 0.0) binsize = 0.5 * neighbor->cutneighmax;