Diff between ff8c13c2758e21a34b3c7d4aa30aa20aa0006ecb and a3a38d8a93f485893a321d24fdf4bf92dc789874

Changed Files

File Additions Deletions Status
src/device.c +4 -4 modified

Full Patch

diff --git a/src/device.c b/src/device.c
index e7e70d3..76c82e1 100644
--- a/src/device.c
+++ b/src/device.c
@@ -703,7 +703,7 @@ static gboolean dev_property_exists_product(const GDBusPropertyTable *property,
 	if (device->vendor_src < 1 || device->vendor_src > 2)
 		return FALSE;
 
-	return !!device->product;
+	return !!device->vendor;
 }
 
 static gboolean dev_property_get_product(const GDBusPropertyTable *property,
@@ -714,7 +714,7 @@ static gboolean dev_property_get_product(const GDBusPropertyTable *property,
 	if (device->vendor_src < 1 || device->vendor_src > 2)
 		return FALSE;
 
-	if (!device->product)
+	if (!device->vendor)
 		return FALSE;
 
 	dbus_message_iter_append_basic(iter, DBUS_TYPE_UINT16,
@@ -731,7 +731,7 @@ static gboolean dev_property_exists_version(const GDBusPropertyTable *property,
 	if (device->vendor_src < 1 || device->vendor_src > 2)
 		return FALSE;
 
-	return !!device->version;
+	return !!device->vendor;
 }
 
 static gboolean dev_property_get_version(const GDBusPropertyTable *property,
@@ -742,7 +742,7 @@ static gboolean dev_property_get_version(const GDBusPropertyTable *property,
 	if (device->vendor_src < 1 || device->vendor_src > 2)
 		return FALSE;
 
-	if (!device->version)
+	if (!device->vendor)
 		return FALSE;
 
 	dbus_message_iter_append_basic(iter, DBUS_TYPE_UINT16,