Actually read the CreateDevice reply
Fixes aborts when the printer isn't a known device.
diff --git a/cups/main.c b/cups/main.c
index 96a2e56..da757b0 100644
--- a/cups/main.c
+++ b/cups/main.c
@@ -371,9 +371,10 @@
if (!reply)
return;
- } else {
- if (dbus_message_get_args(reply, NULL, DBUS_TYPE_OBJECT_PATH, &object_path, DBUS_TYPE_INVALID) == FALSE)
- return;
+ }
+ if (dbus_message_get_args(reply, NULL, DBUS_TYPE_OBJECT_PATH, &object_path,
+ DBUS_TYPE_INVALID) == FALSE) {
+ return;
}
id = device_get_ieee1284_id(adapter, object_path);