We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 42a9bc3 commit dd09b24Copy full SHA for dd09b24
daemon/dbus.c
@@ -1,7 +1,7 @@
1
//
2
// D-Bus API support for cups-local.
3
4
-// Copyright © 2023 by OpenPrinting.
+// Copyright © 2023-2024 by OpenPrinting.
5
6
// Licensed under Apache License v2.0. See the file "LICENSE" for more
7
// information.
@@ -38,8 +38,13 @@ LocalDBusService(void *data) // I - Thread data (unused)
38
(void)data;
39
40
// Connect to the session bus...
41
+ dbus_error_init(&error);
42
+
43
if ((dbus = dbus_bus_get(DBUS_BUS_SESSION, &error)) == NULL)
44
+ {
45
+ dbus_error_free(&error);
46
return (NULL);
47
+ }
48
49
// Read message until error/exit...
50
for (;;)
0 commit comments