diff src/proxy.c @ 14035:8bda65b88e49

[gaim-migrate @ 16638] A bunch of small changes. Mostly remove "if not null" checks before calling g_free, g_list_free, g_slist_free and g_strdup. Also use g_list_foreach() to call g_free to free strings in an array. And some whitespace changes here and there. committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Sat, 05 Aug 2006 08:27:39 +0000
parents 6fc412e59214
children 10e8eb6a4910
line wrap: on
line diff
--- a/src/proxy.c	Sat Aug 05 05:42:28 2006 +0000
+++ b/src/proxy.c	Sat Aug 05 08:27:39 2006 +0000
@@ -107,8 +107,7 @@
 	g_return_if_fail(info != NULL);
 
 	g_free(info->host);
-
-	info->host = (host == NULL ? NULL : g_strdup(host));
+	info->host = g_strdup(host);
 }
 
 void
@@ -125,8 +124,7 @@
 	g_return_if_fail(info != NULL);
 
 	g_free(info->username);
-
-	info->username = (username == NULL ? NULL : g_strdup(username));
+	info->username = g_strdup(username);
 }
 
 void
@@ -135,8 +133,7 @@
 	g_return_if_fail(info != NULL);
 
 	g_free(info->password);
-
-	info->password = (password == NULL ? NULL : g_strdup(password));
+	info->password = g_strdup(password);
 }
 
 GaimProxyType