aboutsummaryrefslogtreecommitdiffstats
path: root/vncviewer
diff options
context:
space:
mode:
authorPierre Ossman <ossman@cendio.se>2015-03-03 16:50:15 +0100
committerPierre Ossman <ossman@cendio.se>2015-03-03 16:50:15 +0100
commit3620e196210a1621f98f7ba6d5a4ae3102ae2205 (patch)
tree722b9f9e2eaa319333f52cb04279345ab14b37c9 /vncviewer
parent63471c9de0892f32f237c97f081e14f66a2365ab (diff)
downloadtigervnc-3620e196210a1621f98f7ba6d5a4ae3102ae2205.tar.gz
tigervnc-3620e196210a1621f98f7ba6d5a4ae3102ae2205.zip
Make sure defaultServerName is initialised even on errors
Diffstat (limited to 'vncviewer')
-rw-r--r--vncviewer/vncviewer.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/vncviewer/vncviewer.cxx b/vncviewer/vncviewer.cxx
index 0b2de53e..a60f000a 100644
--- a/vncviewer/vncviewer.cxx
+++ b/vncviewer/vncviewer.cxx
@@ -425,6 +425,7 @@ int main(int argc, char** argv)
try {
defaultServerName = loadViewerParameters(NULL);
} catch (rfb::Exception& e) {
+ defaultServerName = "";
fl_alert("%s", e.str());
}