Fix intermittent failures when using --quiet

This commit is contained in:
Andrzej Rybczak
2017-08-31 09:23:11 +02:00
parent a960e5c439
commit db28618929
2 changed files with 2 additions and 5 deletions

1
NEWS
View File

@@ -1,5 +1,6 @@
ncmpcpp-0.8.1 (????-??-??)
* Setting 'colors_enabled' to 'no' no longer results in a crash.
* Using '--quiet' command line argument no longer results in a crash.
ncmpcpp-0.8 (2017-05-21)
* Configuration variable 'execute_on_player_state_change' was added.

View File

@@ -105,11 +105,7 @@ bool configure(int argc, char **argv)
// suppress messages from std::clog
if (vm.count("quiet"))
{
std::ofstream null_stream;
null_stream.open("/dev/null");
std::clog.rdbuf(null_stream.rdbuf());
}
std::clog.rdbuf(nullptr);
if (vm.count("help"))
{