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:42:28 +0100
commitfa832689e2574436b0e4cd3db5f99df6aa55882b (patch)
treeb8a15b3a7101f81823f6572757d1aca9e65334ec
parentfc8ca231087c3b106de5ee8a5a9f7ddcbc7a49c0 (diff)
downloadcolord-fa832689e2574436b0e4cd3db5f99df6aa55882b.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,