[at-spi2-core: 9/47] dbtest.c: Ensure that we have a bus connection




commit 0e89a5818c6da422a7f39d9c08e15053e9cb0c19
Author: Federico Mena Quintero <federico gnome org>
Date:   Fri Jul 8 15:04:19 2022 -0500

    dbtest.c: Ensure that we have a bus connection

 dbind/dbtest.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/dbind/dbtest.c b/dbind/dbtest.c
index d4f56906..22ea2165 100644
--- a/dbind/dbtest.c
+++ b/dbind/dbtest.c
@@ -367,9 +367,8 @@ void test_helpers ()
 
 int main (int argc, char **argv)
 {
-    DBusConnection *bus;
-
-    bus = dbus_bus_get (DBUS_BUS_SESSION, NULL);
+    DBusConnection *bus = dbus_bus_get (DBUS_BUS_SESSION, NULL);
+    g_assert (bus != NULL);
 
     test_helpers ();
     test_marshalling ();


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]