mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-29 16:10:11 +01:00
2005-09-06 Dan Williams <dcbw@redhat.com>
Patch from Tomislav Vujec <tvujec@redhat.com> * src/NetworkManagerDevice.c - (nm_get_device_by_udi): don't return a device when we actually didn't find what we were looking for git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@941 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
This commit is contained in:
parent
dc1f3aafbb
commit
e495598a71
2 changed files with 9 additions and 2 deletions
|
|
@ -1,3 +1,10 @@
|
|||
2005-09-06 Dan Williams <dcbw@redhat.com>
|
||||
|
||||
Patch from Tomislav Vujec <tvujec@redhat.com>
|
||||
* src/NetworkManagerDevice.c
|
||||
- (nm_get_device_by_udi): don't return a device when we
|
||||
actually didn't find what we were looking for
|
||||
|
||||
2005-09-06 Christopher Aillon <caillon@redhat.com>
|
||||
|
||||
* gnome/applet/applet-dbus-devices.c:
|
||||
|
|
|
|||
|
|
@ -166,11 +166,11 @@ NMDevice *nm_get_device_by_udi (NMData *data, const char *udi)
|
|||
if ((dev = (NMDevice *)(elt->data)))
|
||||
{
|
||||
if (nm_null_safe_strcmp (nm_device_get_udi (dev), udi) == 0)
|
||||
break;
|
||||
return dev;
|
||||
}
|
||||
}
|
||||
|
||||
return (dev);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue