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:
Dan Williams
2005-09-06 19:35:50 +00:00
parent dc1f3aafbb
commit e495598a71
2 changed files with 9 additions and 2 deletions

View File

@@ -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> 2005-09-06 Christopher Aillon <caillon@redhat.com>
* gnome/applet/applet-dbus-devices.c: * gnome/applet/applet-dbus-devices.c:

View File

@@ -166,11 +166,11 @@ NMDevice *nm_get_device_by_udi (NMData *data, const char *udi)
if ((dev = (NMDevice *)(elt->data))) if ((dev = (NMDevice *)(elt->data)))
{ {
if (nm_null_safe_strcmp (nm_device_get_udi (dev), udi) == 0) if (nm_null_safe_strcmp (nm_device_get_udi (dev), udi) == 0)
break; return dev;
} }
} }
return (dev); return NULL;
} }