daemon: fix readline interfering with std::cerr usage

Once readline is initialized, std::cerr's operator<< will
output a 0xff byte for unknown reasons.
pull/70/head
moneromooo-monero 6 years ago committed by wowario
parent 6489ad8a1a
commit 9a2fa460b0

@ -262,6 +262,9 @@ int main(int argc, char const * argv[])
}
else
{
#ifdef HAVE_READLINE
rdln::suspend_readline pause_readline;
#endif
std::cerr << "Unknown command: " << command.front() << std::endl;
return 1;
}

Loading…
Cancel
Save