diff options
author | Richard Hughes <richard@hughsie.com> | 2022-04-13 14:08:42 +0100 |
---|---|---|
committer | Richard Hughes <richard@hughsie.com> | 2022-04-13 14:42:28 +0100 |
commit | fa832689e2574436b0e4cd3db5f99df6aa55882b (patch) | |
tree | b8a15b3a7101f81823f6572757d1aca9e65334ec | |
parent | fc8ca231087c3b106de5ee8a5a9f7ddcbc7a49c0 (diff) | |
download | colord-fa832689e2574436b0e4cd3db5f99df6aa55882b.tar.gz |
dtp94: Fix an error check when parsing the data
-rw-r--r-- | src/sensors/dtp94/dtp94-device.c | 2 |
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, |