From 9d349d618a0a7d03e7ea847a7fa2e864cf3928b3 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sat, 26 Feb 2022 14:41:53 +0530 Subject: [PATCH] Fix #4743 --- glfw/dbus_glfw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/glfw/dbus_glfw.c b/glfw/dbus_glfw.c index fb5297273..843d6d99a 100644 --- a/glfw/dbus_glfw.c +++ b/glfw/dbus_glfw.c @@ -263,7 +263,7 @@ call_method_with_msg(DBusConnection *conn, DBusMessage *msg, int timeout, dbus_p static bool call_method(DBusConnection *conn, const char *node, const char *path, const char *interface, const char *method, int timeout, dbus_pending_callback callback, void *user_data, va_list ap) { - if (!conn) return false; + if (!conn || !path) return false; DBusMessage *msg = dbus_message_new_method_call(node, path, interface, method); if (!msg) return false; bool retval = false;