libfprint/SOURCES/0005-synaptics-Add-an-explicit-assert-on-the-response.patch
2021-09-09 20:12:48 +00:00

28 lines
844 B
Diff

From 8ba6f4dad2d9c04217153f32c11ac69967ddec00 Mon Sep 17 00:00:00 2001
From: Benjamin Berg <bberg@redhat.com>
Date: Mon, 25 Nov 2019 18:37:12 +0100
Subject: [PATCH 005/181] synaptics: Add an explicit assert on the response
The response must be non-NULL in the function. Add an explicit assert to
appease to static code analysis tools.
---
libfprint/drivers/synaptics/synaptics.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/libfprint/drivers/synaptics/synaptics.c b/libfprint/drivers/synaptics/synaptics.c
index 4bac934..8eba852 100644
--- a/libfprint/drivers/synaptics/synaptics.c
+++ b/libfprint/drivers/synaptics/synaptics.c
@@ -604,6 +604,8 @@ verify_msg_cb (FpiDeviceSynaptics *self,
return;
}
+ g_assert (resp != NULL);
+
verify_resp = &resp->response.verify_resp;
switch (resp->response_id)
--
2.24.1