Skip to content

Commit

Permalink
Fixed crash if dbus is not accesible
Browse files Browse the repository at this point in the history
Signed-off-by: Trial97 <[email protected]>
  • Loading branch information
Trial97 authored and afayaz-feral committed Feb 14, 2024
1 parent 8cea4c2 commit 3fa4189
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/client_impl.c
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ static int log_error(const char *fmt, ...)

static void hop_off_the_bus(DBusConnection **bus)
{
if (bus == NULL)
if (bus == NULL || *bus == NULL)
return;

dbus_connection_unref(*bus);
Expand Down

0 comments on commit 3fa4189

Please sign in to comment.