From 3620e196210a1621f98f7ba6d5a4ae3102ae2205 Mon Sep 17 00:00:00 2001 From: Pierre Ossman Date: Tue, 3 Mar 2015 16:50:15 +0100 Subject: [PATCH] Make sure defaultServerName is initialised even on errors --- vncviewer/vncviewer.cxx | 1 + 1 file changed, 1 insertion(+) 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()); } -- 2.39.5