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:
@@ -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
|
||||
|
@@ -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;
|
||||
|
Reference in New Issue
Block a user