From 19165c8f5e71bc5778eef2b66421bd7d1c1cca68 Mon Sep 17 00:00:00 2001 From: Pierre Ossman Date: Mon, 16 Nov 2020 13:39:48 +0100 Subject: [PATCH] Don't show error dialog if exiting without message This was already handled for most exit conditions, but not the early ones. --- vncviewer/vncviewer.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vncviewer/vncviewer.cxx b/vncviewer/vncviewer.cxx index 77ba3d3f..b3371c4c 100644 --- a/vncviewer/vncviewer.cxx +++ b/vncviewer/vncviewer.cxx @@ -120,7 +120,7 @@ void exit_vncviewer(const char *error) exitMainloop = true; else { // We're early in the startup. Assume we can just exit(). - if (alertOnFatalError) + if (alertOnFatalError && (exitError != NULL)) fl_alert("%s", exitError); exit(EXIT_FAILURE); } -- 2.39.5