summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Hughes <richard@hughsie.com>2022-04-13 14:08:42 +0100
committerRichard Hughes <richard@hughsie.com>2022-04-13 14:08:42 +0100
commita0fc7bbb1ad2c63f6d7a5248b1cff78b47c7547b (patch)
tree57cd40e4ca64aa97135132a12e3d0442519b174c
parentea598a86307ee0c7496e1845d4c4cca2d7d3e134 (diff)
downloadcolord-a0fc7bbb1ad2c63f6d7a5248b1cff78b47c7547b.tar.gz
dtp94: Fix an error check when parsing the data
-rw-r--r--src/sensors/dtp94/dtp94-device.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sensors/dtp94/dtp94-device.c b/src/sensors/dtp94/dtp94-device.c
index e3ba530..1094868 100644
--- a/src/sensors/dtp94/dtp94-device.c
+++ b/src/sensors/dtp94/dtp94-device.c
@@ -102,7 +102,7 @@ dtp94_device_send_data (GUsbDevice *device,
error);
if (!ret)
return FALSE;
- if (reply_read == 0) {
+ if (*reply_read == 0) {
g_set_error_literal (error,
DTP94_DEVICE_ERROR,
DTP94_DEVICE_ERROR_INTERNAL,