]> source.dussan.org Git - tigervnc.git/commitdiff
Make sure defaultServerName is initialised even on errors
authorPierre Ossman <ossman@cendio.se>
Tue, 3 Mar 2015 15:50:15 +0000 (16:50 +0100)
committerPierre Ossman <ossman@cendio.se>
Tue, 3 Mar 2015 15:50:15 +0000 (16:50 +0100)
vncviewer/vncviewer.cxx

index 0b2de53e1bc20882697c6d9798f4d91cf23e9cb3..a60f000a4c65935b2168f2ed88ea3f205f812b80 100644 (file)
@@ -425,6 +425,7 @@ int main(int argc, char** argv)
   try {
     defaultServerName = loadViewerParameters(NULL);
   } catch (rfb::Exception& e) {
+    defaultServerName = "";
     fl_alert("%s", e.str());
   }