From 8ba6f4dad2d9c04217153f32c11ac69967ddec00 Mon Sep 17 00:00:00 2001 From: Benjamin Berg Date: Mon, 25 Nov 2019 18:37:12 +0100 Subject: [PATCH] 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)