Commit e495598a authored by Dan Williams's avatar Dan Williams
Browse files

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
parent dc1f3aaf
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;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment