From a02f1bc27ae668c56a58ab5510e500c0261d7571 Mon Sep 17 00:00:00 2001 From: Philip Withnall Date: Mon, 12 Feb 2018 15:04:53 +0000 Subject: [PATCH 2/2] dtp94: Fix broken check for invalid reply from the device We want the value, not the pointer. Coverity CID: 1453712. Signed-off-by: Philip Withnall https://bugs.freedesktop.org/show_bug.cgi?id=105061 --- src/sensors/dtp94/dtp94-device.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sensors/dtp94/dtp94-device.c b/src/sensors/dtp94/dtp94-device.c index 65ee254..5e4099b 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, -- 2.14.3