]> source.dussan.org Git - tigervnc.git/commitdiff
[Bugfix] vncviewer could crash when started with no arguments and user clicked
authorAdam Tkac <atkac@redhat.com>
Mon, 11 Jan 2010 13:46:48 +0000 (13:46 +0000)
committerAdam Tkac <atkac@redhat.com>
Mon, 11 Jan 2010 13:46:48 +0000 (13:46 +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/trunk@3941 3789f03b-4d11-0410-bbf8-ca57d06f2519

unix/vncviewer/CConn.cxx

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