mirror of
https://github.com/monero-project/monero.git
synced 2024-12-14 04:16:32 +02:00
daemon: fix readline interfering with std::cerr usage
Once readline is initialized, std::cerr's operator<< will output a 0xff byte for unknown reasons.
This commit is contained in:
parent
c534fe8d19
commit
1aae39dff2
@ -262,6 +262,9 @@ int main(int argc, char const * argv[])
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
#ifdef HAVE_READLINE
|
||||||
|
rdln::suspend_readline pause_readline;
|
||||||
|
#endif
|
||||||
std::cerr << "Unknown command: " << command.front() << std::endl;
|
std::cerr << "Unknown command: " << command.front() << std::endl;
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user