9969d52ace
Pressing ctrl-r when no ~/.root_hist file is present or possibly when it contains 0 lines used to cause a segfault. The culprit if an out-of-bound access in History::GetLine, as the case in which the history has zero entries was not taken into account. With this patch, Histoy::GetLine returns an empty string instead. This fixes ROOT-10917. Co-authored-by: Axel Naumann <Axel.Naumann@cern.ch> |
||
---|---|---|
.. | ||
textinput | ||
CMakeLists.txt | ||
UserInterface.cpp |