From 1762fe4fca2c0721405367002df976540291d802 Mon Sep 17 00:00:00 2001 From: Wim Lavrijsen <WLavrijsen@lbl.gov> Date: Mon, 8 Oct 2007 23:42:49 +0000 Subject: [PATCH] Fix http://savannah.cern.ch/bugs/?30217 by adding a dummy Gl_histinit() in TPyROOTApplication.cxx git-svn-id: http://root.cern.ch/svn/root/trunk@20269 27541ba8-7e3a-0410-8455-c3a389f83636 --- pyroot/src/TPyROOTApplication.cxx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pyroot/src/TPyROOTApplication.cxx b/pyroot/src/TPyROOTApplication.cxx index b3ba91a934a..00c5be1d46b 100644 --- a/pyroot/src/TPyROOTApplication.cxx +++ b/pyroot/src/TPyROOTApplication.cxx @@ -11,6 +11,7 @@ #include "TSystem.h" #include "TBenchmark.h" #include "TStyle.h" +#include "Getline.h" // CINT #include "Api.h" @@ -73,6 +74,9 @@ PyROOT::TPyROOTApplication::TPyROOTApplication( gInterpreter->SaveContext(); gInterpreter->SaveGlobalsContext(); +// prevent crashes on accessing histor + Gl_histinit( (char*)"-" ); + // prevent ROOT from exiting python SetReturnFromRun( kTRUE ); } -- GitLab