Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion library/evdi_lib.c
Original file line number Diff line number Diff line change
Expand Up @@ -639,7 +639,9 @@ int evdi_add_device(void)
// deprecated, use evdi_open_attached_to_fixed
evdi_handle evdi_open_attached_to(const char *sysfs_parent_device)
{
return evdi_open_attached_to_fixed(sysfs_parent_device, strlen(sysfs_parent_device));
return evdi_open_attached_to_fixed(
sysfs_parent_device,
sysfs_parent_device ? strlen(sysfs_parent_device) : 0);
}

evdi_handle evdi_open_attached_to_fixed(const char *sysfs_parent_device, size_t length)
Expand Down