Commit 91426dae authored by Robert Love's avatar Robert Love Committed by Robert Love
Browse files

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
parent 005fe33d
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;
......
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