Skip to content

Commit

Permalink
OrcLib: Console: do not output '\0'
Browse files Browse the repository at this point in the history
  • Loading branch information
fabienfl-orc committed Dec 1, 2020
1 parent 138251d commit 4e1bf22
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/OrcLib/Output/Console/Console.h
Expand Up @@ -30,6 +30,11 @@ struct StdoutContainerAdapter
using value_type = T;
void push_back(T c)
{
if (c == 0)
{
return;
}

Traits::get_std_out<T>() << c;

// Using stdout with multiple threads requires synchronization so it should not be bothering to have a 'static'
Expand Down

0 comments on commit 4e1bf22

Please sign in to comment.