changeset 10036:0ddc38f8db4a

[gaim-migrate @ 10995] this account deletion patch should have been committed to both trees a while ago committer: Tailor Script <tailor@pidgin.im>
author Luke Schierer <lschiere@pidgin.im>
date Sat, 18 Sep 2004 21:55:37 +0000
parents 4e7fe18a36b7
children e6e68b9db19b
files src/gtkblist.c src/prpl.c
diffstat 2 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/gtkblist.c	Sat Sep 18 17:19:29 2004 +0000
+++ b/src/gtkblist.c	Sat Sep 18 21:55:37 2004 +0000
@@ -4741,6 +4741,8 @@
 	const char *protoname = NULL;
 	char buf[256];
 
+	g_return_val_if_fail( account != NULL, NULL);
+	
 	prpl = gaim_find_prpl(gaim_account_get_protocol_id(account));
 
 	if (prpl != NULL) {
--- a/src/prpl.c	Sat Sep 18 17:19:29 2004 +0000
+++ b/src/prpl.c	Sat Sep 18 21:55:37 2004 +0000
@@ -385,6 +385,8 @@
 	GList *l;
 	GaimPlugin *plugin;
 
+	g_return_val_if_fail(id != NULL, NULL);
+
 	for (l = gaim_plugins_get_protocols(); l != NULL; l = l->next) {
 		plugin = (GaimPlugin *)l->data;