]> source.dussan.org Git - tigervnc.git/commitdiff
Fixed a bug with crashing the application when openSessionFile uses
authorgeorge82 <george82@3789f03b-4d11-0410-bbf8-ca57d06f2519>
Thu, 3 Feb 2005 14:25:00 +0000 (14:25 +0000)
committergeorge82 <george82@3789f03b-4d11-0410-bbf8-ca57d06f2519>
Thu, 3 Feb 2005 14:25:00 +0000 (14:25 +0000)
a few times.

git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@138 3789f03b-4d11-0410-bbf8-ca57d06f2519

rfbplayer/RfbProto.cxx

index 68a0f57ef6d52ca37975b02eacabefa503909f64..8c151997c948e47ce38fa34cac80da5739e9d3df 100644 (file)
@@ -85,6 +85,7 @@ void RfbProto::processMsg()
 void RfbProto::processVersionMsg()
 {
   vlog.debug("reading protocol version");
+  memset(&cp, 0, sizeof(cp));
   bool done;
   if (!cp.readVersion(is, &done)) {
     state_ = RFBSTATE_INVALID;