2005-03-15 Ray Strode <rstrode@redhat.com>

Fix a few -Wall -Werror warnings

	* info-daemon/NetworkManagerInfo.c:
	(main): remove unused loop variable.

	* info-daemon/NetworkManagerInfoDbus.c:
	(nmi_dbus_nm_is_running): comment out
	unused static function

	* src/nm-netlink-monitor.c:
	(receive_pending_bytes):
	initialize output variables to NULL/0,
	on function failure (Problem pointed out
	by Bryan Clark).


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@498 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
This commit is contained in:
Ray Strode
2005-03-15 15:08:38 +00:00
parent 278e500f99
commit dfcc12908b
4 changed files with 21 additions and 3 deletions

View File

@@ -536,7 +536,8 @@ receive_pending_bytes (GIOChannel *channel,
goto out;
}
if (pending_bytes->len > 0)
out:
if ((pending_bytes->len > 0) && succeeded)
{
if (str_return)
*str_return = pending_bytes->str;
@@ -556,7 +557,6 @@ receive_pending_bytes (GIOChannel *channel,
*length = 0;
}
out:
if (pending_bytes != NULL)
g_string_free (pending_bytes, TRUE);
return succeeded;