Skip to content

Commit

Permalink
test/stock/TestStock: initialize global variables
Browse files Browse the repository at this point in the history
Just in case it got called twice.
  • Loading branch information
MaxKellermann committed Oct 17, 2023
1 parent 52e50b7 commit 7a14fc3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/stock/TestStock.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,10 @@ TEST(Stock, Basic)

MyStockGetHandler handler;

num_create = num_fail = num_borrow = num_release = num_destroy = 0;
next_fail = got_item = false;
last_item = nullptr;

/* create first item */

stock.Get(nullptr, handler, cancel_ptr);
Expand Down

0 comments on commit 7a14fc3

Please sign in to comment.