diff src/account.c @ 10448:6a20307ef8dc

[gaim-migrate @ 11713] Fix the problem with accounts.xml being loaded before the plugins were probed. This fixes the Yahoo! crash mentioned by the guy on gaim-devel and a guy in #gaim, and a few other obscure problems. Plugins are probed* by the core now instead of the UI. Less work for UI implementors means less code duplication and makes it more likely someone will write a new UI. *Probing loads the PRPLs and any loader plugins (perl, tcl, etc.), and makes plugin information available everywhere else. committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Wed, 29 Dec 2004 22:48:59 +0000
parents 6feef0a9098a
children a3a540ed2518
line wrap: on
line diff
--- a/src/account.c	Wed Dec 29 21:53:59 2004 +0000
+++ b/src/account.c	Wed Dec 29 22:48:59 2004 +0000
@@ -312,6 +312,10 @@
 			continue;
 
 		str_type = xmlnode_get_attrib(child, "type");
+		if (str_type == NULL)
+			/* Ignore this setting */
+			continue;
+
 		if (!strcmp(str_type, "string"))
 			type = GAIM_PREF_STRING;
 		else if (!strcmp(str_type, "int"))