Skip to content

Commit

Permalink
Combining testing of basket and user_buffer
Browse files Browse the repository at this point in the history
  • Loading branch information
zzxuanyuan committed Jan 29, 2019
1 parent da86dac commit df8665a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tree/tree/src/TBranch.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -1351,8 +1351,7 @@ Int_t TBranch::GetBasketAndFirst(TBasket*&basket, Long64_t &first,
// We have found the basket containing this entry.
// make sure basket buffers are in memory.
basket = (TBasket*) fBaskets.UncheckedAt(fReadBasket);
if (user_buffer) basket = nullptr;
if (!basket) {
if (!basket || user_buffer) {
basket = GetBasketImpl(fReadBasket, user_buffer);
if (!basket) {
fCurrentBasket = 0;
Expand Down

0 comments on commit df8665a

Please sign in to comment.