Import revision 48113 from the trunk: Fix  <http://savannah.cern.ch/bugs/?99523> : In the DAQ system for the AEgIS (AD6) experiment we update ROOT files via TTree::AutoSave("saveself"), and concurrently read them upon calling TTree::Refresh(), as advertised.
Import revision 48113 from the trunk:
Fix  <http://savannah.cern.ch/bugs/?99523> :
In the DAQ system for the AEgIS (AD6) experiment we update ROOT files via
TTree::AutoSave("saveself"), and concurrently read them upon calling
TTree::Refresh(), as advertised.

Occasionally, but always after reporting the "Error R__unzip_header: error in
header" message (see backtrace below), the read code would sit in a long loop
or/and eventually get a SEGV and crash.

It looks that when R__unzip_header fails (which may be the case when the data
are concurrently updated) in TKey.cxx, a variable ('nout') is left
uninitialised. It can be non-zero, thus leading to further data processing.


git-svn-id: ecbadac9c76e8cf640a0bca86f6bd796c98521e3@48114 27541ba8-7e3a-0410-8455-c3a389f83636

bbannier/ROOT,bbannier/ROOT,bbannier/ROOT,bbannier/ROOT,bbannier/ROOT,bbannier/ROOT,bbannier/ROOT