Commit e55ad52d authored by Christian Kellner's avatar Christian Kellner Committed by Bastien Nocera

device: Fix warning when open the device fails

The error should be initialised to NULL before being set.
parent 0d286781
......@@ -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);
if (status != 0) {
GError *error;
GError *error = NULL;
g_free (priv->sender);
priv->sender = NULL;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment