aboutsummaryrefslogtreecommitdiff
path: root/contrib/epee/src
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2017-06-21 17:33:47 +0100
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2017-06-21 17:33:47 +0100
commit21b939e1e64295e216e2e78d5ff2c6d7a374fa00 (patch)
tree4625adb29f7052aadd2aca10f14b9ba5e410c8c3 /contrib/epee/src
parentreadline_buffer: add a couple const (diff)
downloadmonero-21b939e1e64295e216e2e78d5ff2c6d7a374fa00.tar.xz
readline: fix invalid memory access
m_cout_buf was not initialized
Diffstat (limited to 'contrib/epee/src')
-rw-r--r--contrib/epee/src/readline_buffer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/epee/src/readline_buffer.cpp b/contrib/epee/src/readline_buffer.cpp
index 9195937af..6305d3e16 100644
--- a/contrib/epee/src/readline_buffer.cpp
+++ b/contrib/epee/src/readline_buffer.cpp
@@ -39,7 +39,7 @@ rdln::suspend_readline::~suspend_readline()
}
rdln::readline_buffer::readline_buffer()
-: std::stringbuf()
+: std::stringbuf(), m_cout_buf(NULL)
{
current = this;
}