From 2e9c40a456922ca78c7ba80b0c46837b5b3c972e Mon Sep 17 00:00:00 2001 From: Colomban Wendling Date: Wed, 9 Aug 2023 19:07:17 +0200 Subject: Fix potential crash if org.mate.ScreenSaver doesn't respond --- src/daemon/daemon.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src') diff --git a/src/daemon/daemon.c b/src/daemon/daemon.c index 88927ed..71426f3 100644 --- a/src/daemon/daemon.c +++ b/src/daemon/daemon.c @@ -1126,6 +1126,7 @@ static gboolean screensaver_active(GtkWidget* nw) if (proxy == NULL) { g_warning("Failed to get dbus connection: %s", error->message); g_error_free (error); + return active; } variant = g_dbus_proxy_call_sync (proxy, -- cgit v1.2.1