Skip to content

Commit

Permalink
Merge pull request berthubert#1 from foodornt/main
Browse files Browse the repository at this point in the history
Set atomic counter to 0 when initialized
  • Loading branch information
berthubert authored Aug 22, 2022
2 parents 5bcfac8 + ca27c57 commit f66c2e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion teller.cc
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ int main()
cerr<<"Error opening audio: "<<audio_object_strerror(ao, res)<<endl;
}

std::atomic<int64_t> counter;
std::atomic<int64_t> counter = 0;
auto player = [&]() {
vector<int16_t> data;
int ourcounter=0;
Expand Down

0 comments on commit f66c2e9

Please sign in to comment.