diff options
author | Pierre Ossman <ossman@cendio.se> | 2015-03-03 16:50:15 +0100 |
---|---|---|
committer | Pierre Ossman <ossman@cendio.se> | 2015-03-03 16:50:15 +0100 |
commit | 3620e196210a1621f98f7ba6d5a4ae3102ae2205 (patch) | |
tree | 722b9f9e2eaa319333f52cb04279345ab14b37c9 /vncviewer | |
parent | 63471c9de0892f32f237c97f081e14f66a2365ab (diff) | |
download | tigervnc-3620e196210a1621f98f7ba6d5a4ae3102ae2205.tar.gz tigervnc-3620e196210a1621f98f7ba6d5a4ae3102ae2205.zip |
Make sure defaultServerName is initialised even on errors
Diffstat (limited to 'vncviewer')
-rw-r--r-- | vncviewer/vncviewer.cxx | 1 |
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()); } |