mirror of
https://gitlab.freedesktop.org/libfprint/libfprint.git
synced 2026-06-10 00:28:21 +02:00
fp-device: Do not duplicate udev paths strings
This is happening already internally when using g_value_set_string
This commit is contained in:
parent
dd6f020378
commit
3f70bde21c
1 changed files with 2 additions and 2 deletions
|
|
@ -292,14 +292,14 @@ fp_device_get_property (GObject *object,
|
|||
|
||||
case PROP_FPI_UDEV_DATA_SPIDEV:
|
||||
if (cls->type == FP_DEVICE_TYPE_UDEV)
|
||||
g_value_set_string (value, g_strdup (priv->udev_data.spidev_path));
|
||||
g_value_set_string (value, priv->udev_data.spidev_path);
|
||||
else
|
||||
g_value_set_string (value, NULL);
|
||||
break;
|
||||
|
||||
case PROP_FPI_UDEV_DATA_HIDRAW:
|
||||
if (cls->type == FP_DEVICE_TYPE_UDEV)
|
||||
g_value_set_string (value, g_strdup (priv->udev_data.hidraw_path));
|
||||
g_value_set_string (value, priv->udev_data.hidraw_path);
|
||||
else
|
||||
g_value_set_string (value, NULL);
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue