TChain::LoadTree() returns 1 in empty chains(instead of -1?)

Dear ROOTers,

I noticed that TChain::LoadTree() returns 1 in case of empty chains, while all other “error” conditions return a negative value… is it working as intended?

Hi,

Thanks for the report. TChain::LoadTree should be returning -1 in this case. The trunk (revision 41111) has been updated to include the correction.

Thanks,
Philippe.