summaryrefslogtreecommitdiff
path: root/dbind
diff options
context:
space:
mode:
authorFederico Mena Quintero <federico@gnome.org>2022-07-08 15:04:19 -0500
committerFederico Mena Quintero <federico@gnome.org>2022-07-12 21:46:28 -0500
commit0e89a5818c6da422a7f39d9c08e15053e9cb0c19 (patch)
tree57633d99b2ab854bd2dfa6035da103933d28d6aa /dbind
parent5c6c7721e3390ee6e2659a8a2253c2fe4ed2113e (diff)
downloadat-spi2-core-0e89a5818c6da422a7f39d9c08e15053e9cb0c19.tar.gz
dbtest.c: Ensure that we have a bus connection
Diffstat (limited to 'dbind')
-rw-r--r--dbind/dbtest.c5
1 files 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 ();