that's what I wanted to do, fix function

SVN revision: 53495
This commit is contained in:
Mike Blumenkrantz 2010-10-16 20:03:36 +00:00
parent 51aad7ad45
commit f1d884900b
1 changed files with 2 additions and 6 deletions

View File

@ -303,8 +303,7 @@ eeze_udev_devpath_get_syspath(const char *devpath)
{
_udev_enumerate *en;
_udev_list_entry *devs, *cur;
_udev_device *device;
const char *name, *ret = NULL;
const char *ret = NULL;
if (!devpath)
return NULL;
@ -319,10 +318,7 @@ eeze_udev_devpath_get_syspath(const char *devpath)
devs = udev_enumerate_get_list_entry(en);
udev_list_entry_foreach(cur, devs)
{
name = udev_list_entry_get_name(cur);
device = udev_device_new_from_syspath(udev, name);
ret = eina_stringshare_add(udev_device_get_sysname(device));
udev_device_unref(device);
ret = eina_stringshare_add(udev_list_entry_get_name(cur));
break; /*just in case there's more than one somehow */
}
udev_enumerate_unref(en);