]> source.dussan.org Git - tigervnc.git/commitdiff
[Bugfix] vncviewer could crash when started with no arguments and user clicked
authorAdam Tkac <atkac@redhat.com>
Tue, 19 Jan 2010 11:21:29 +0000 (11:21 +0000)
committerAdam Tkac <atkac@redhat.com>
Tue, 19 Jan 2010 11:21:29 +0000 (11:21 +0000)
on "Options" and "OK". Thanks to Jan Gorig for the patch.

Reference: https://bugzilla.redhat.com/show_bug.cgi?id=541755

git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/branches/1_0@3948 3789f03b-4d11-0410-bbf8-ca57d06f2519

unix/vncviewer/CConn.cxx

index bc7266d4e2c305baf015320255b5c83f07d8cc23..ebec4fd4e40f41e8a9f2b64d5b45220c1466bcb9 100644 (file)
@@ -684,7 +684,8 @@ void CConn::getOptions() {
       desktop->resetLocalCursor();
   }
   dotWhenNoCursor.setParam(options.dotWhenNoCursor.checked());
-  desktop->setNoCursor();
+  if (desktop)
+    desktop->setNoCursor();
   checkEncodings();
 }