mirror of
https://gitlab.com/mishakmak/pam-fprint-grosshack.git
synced 2026-04-09 04:13:33 +02:00
device: Fix warning when open the device fails
The error should be initialised to NULL before being set.
This commit is contained in:
committed by
Bastien Nocera
parent
0d28678118
commit
e55ad52ded
@ -604,7 +604,7 @@ static void dev_open_cb(struct fp_dev *dev, int status, void *user_data)
|
|||||||
g_message("device %d claim status %d", priv->id, status);
|
g_message("device %d claim status %d", priv->id, status);
|
||||||
|
|
||||||
if (status != 0) {
|
if (status != 0) {
|
||||||
GError *error;
|
GError *error = NULL;
|
||||||
|
|
||||||
g_free (priv->sender);
|
g_free (priv->sender);
|
||||||
priv->sender = NULL;
|
priv->sender = NULL;
|
||||||
|
|||||||
Reference in New Issue
Block a user