aboutsummaryrefslogtreecommitdiffstats
path: root/unix
diff options
context:
space:
mode:
authorAdam Tkac <atkac@redhat.com>2010-01-11 13:46:48 +0000
committerAdam Tkac <atkac@redhat.com>2010-01-11 13:46:48 +0000
commitcc247c9e0eb575785288e8e12d1eb22df60bfd85 (patch)
treeaae986126602f11b5011c26dd88f99db13e36c6f /unix
parentc48abf15c701e8fce2b02f6a1b3686da80c21956 (diff)
downloadtigervnc-cc247c9e0eb575785288e8e12d1eb22df60bfd85.tar.gz
tigervnc-cc247c9e0eb575785288e8e12d1eb22df60bfd85.zip
[Bugfix] vncviewer could crash when started with no arguments and user clicked
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
Diffstat (limited to 'unix')
-rw-r--r--unix/vncviewer/CConn.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/unix/vncviewer/CConn.cxx b/unix/vncviewer/CConn.cxx
index 2454be21..aa21daaa 100644
--- a/unix/vncviewer/CConn.cxx
+++ b/unix/vncviewer/CConn.cxx
@@ -684,7 +684,8 @@ void CConn::getOptions() {
desktop->resetLocalCursor();
}
dotWhenNoCursor.setParam(options.dotWhenNoCursor.checked());
- desktop->setNoCursor();
+ if (desktop)
+ desktop->setNoCursor();
checkEncodings();
}