소스 검색

Fixed crash if dbus is not accesible

Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
Trial97 1 년 전
부모
커밋
3fa41891cf
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      lib/client_impl.c

+ 1 - 1
lib/client_impl.c

@@ -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);