mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-30 10:50:11 +01:00
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:
parent
005fe33d72
commit
91426daecc
2 changed files with 4 additions and 5 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue