mirror of
https://gitlab.freedesktop.org/libfprint/fprintd.git
synced 2025-12-28 19:10:10 +01:00
Fix GetAll properties call
The error wasn't properly initialised, but wasn't used anyway, and we were missing the interface argument.
This commit is contained in:
parent
c9fdeb47aa
commit
2b71776124
1 changed files with 2 additions and 2 deletions
|
|
@ -303,7 +303,7 @@ static gboolean verify_timeout_cb (gpointer user_data)
|
|||
|
||||
static int do_verify(DBusGConnection *connection, GMainLoop *loop, pam_handle_t *pamh, DBusGProxy *dev)
|
||||
{
|
||||
GError *error;
|
||||
GError *error = NULL;
|
||||
GHashTable *props;
|
||||
DBusGProxy *p;
|
||||
verify_data *data;
|
||||
|
|
@ -319,7 +319,7 @@ static int do_verify(DBusGConnection *connection, GMainLoop *loop, pam_handle_t
|
|||
"net.reactivated.Fprint", dbus_g_proxy_get_path (dev),
|
||||
"org.freedesktop.DBus.Properties");
|
||||
|
||||
if (dbus_g_proxy_call (p, "GetAll", &error, G_TYPE_INVALID,
|
||||
if (dbus_g_proxy_call (p, "GetAll", NULL, G_TYPE_STRING, "net.reactivated.Fprint.Device", G_TYPE_INVALID,
|
||||
dbus_g_type_get_map ("GHashTable", G_TYPE_STRING, G_TYPE_VALUE), &props, G_TYPE_INVALID)) {
|
||||
const char *scan_type;
|
||||
data->driver = g_value_dup_string (g_hash_table_lookup (props, "name"));
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue