2005-06-30 Robert Love <rml@novell.com>

* src/NetworkManagerDevice.c: g_malloc0 cannot fail.


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@764 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
This commit is contained in:
Robert Love
2005-06-30 14:28:52 +00:00
committed by Robert Love
parent 005fe33d72
commit 91426daecc
2 changed files with 4 additions and 5 deletions

View File

@@ -1,3 +1,7 @@
2005-06-30 Robert Love <rml@novell.com>
* src/NetworkManagerDevice.c: g_malloc0 cannot fail.
2005-06-27 Robert Love <rml@novell.com>
* src/nm-dbus-nm.c: fix "setWirelessEnabled" call for the enabling

View File

@@ -290,11 +290,6 @@ NMDevice *nm_device_new (const char *iface, const char *udi, gboolean test_dev,
}
dev = g_malloc0 (sizeof (NMDevice));
if (!dev)
{
nm_warning ("could not allocate a new device... Not enough memory?");
return (NULL);
}
dev->refcount = 2; /* 1 for starters, and another 1 for the worker thread */
dev->app_data = app_data;