From f647e684c3b815cfdf3f218fcb0c217d1ed2cf06 Mon Sep 17 00:00:00 2001
From: Lorenzo Moneta <Lorenzo.Moneta@cern.ch>
Date: Thu, 19 Apr 2012 13:36:55 +0000
Subject: [PATCH] fix an unitialized variable

git-svn-id: http://root.cern.ch/svn/root/trunk@43845 27541ba8-7e3a-0410-8455-c3a389f83636
---
 hist/hist/src/TKDE.cxx | 1 +
 1 file changed, 1 insertion(+)

diff --git a/hist/hist/src/TKDE.cxx b/hist/hist/src/TKDE.cxx
index 7041f861b62..14ed2343f67 100644
--- a/hist/hist/src/TKDE.cxx
+++ b/hist/hist/src/TKDE.cxx
@@ -753,6 +753,7 @@ TGraphErrors* TKDE::GetGraphWithErrors(UInt_t npx, double xmin, double xmax) {
    for (UInt_t i = 0; i <= n; ++i) {
       x[i] = xmin + i * (xmax - xmin) / n;
       y[i] = (*this)(x[i]);
+      ex[i] = 0;
       ey[i] = this->GetError(x[i]);
    }
    TGraphErrors* ge = new TGraphErrors(n, &x[0], &y[0], &ex[0], &ey[0]);
-- 
GitLab