From f14be456322a2c7310488c8a4bdec1d06fcf0e8d Mon Sep 17 00:00:00 2001 From: Michael Vogt Date: Tue, 13 Mar 2012 13:52:28 +0100 Subject: cherry pick 2217.1.26 (cppcheck fixes) --- methods/rsh.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'methods/rsh.cc') diff --git a/methods/rsh.cc b/methods/rsh.cc index d249ae961..fb3782314 100644 --- a/methods/rsh.cc +++ b/methods/rsh.cc @@ -42,7 +42,9 @@ int RSHMethod::FailFd = -1; // --------------------------------------------------------------------- /* */ RSHConn::RSHConn(URI Srv) : Len(0), WriteFd(-1), ReadFd(-1), - ServerName(Srv), Process(-1) {} + ServerName(Srv), Process(-1) { + Buffer[0] = '\0'; +} /*}}}*/ // RSHConn::RSHConn - Destructor /*{{{*/ // --------------------------------------------------------------------- -- cgit v1.2.3