wacom_handle_ekr(struct udev_device *device,
int *vendor_id,
int *product_id,
- const char **phys_attr)
+ char **phys_attr)
{
struct udev *udev;
struct udev_enumerate *e;
*product_id = pid;
best_dist = dist;
- free((char*)*phys_attr);
+ free(*phys_attr);
*phys_attr = strdup(phys);
}
}
struct udev *udev = NULL;
struct udev_device *device = NULL;
const char *syspath,
- *phys = NULL,
- *physmatch = NULL;
+ *phys = NULL;
const char *product;
int bustype, vendor_id, product_id, version;
char group[1024];
&version) != 4) {
snprintf(group, sizeof(group), "%s:%s", product, phys);
} else {
+ char *physmatch = NULL;
+
#if HAVE_LIBWACOM_GET_PAIRED_DEVICE
if (vendor_id == VENDOR_ID_WACOM) {
if (product_id == PRODUCT_ID_WACOM_EKR)
vendor_id,
product_id,
physmatch ? physmatch : phys);
+
+ free(physmatch);
}
str = strstr(group, "/input");