changeset 9423:2c6af2767fcf

[gaim-migrate @ 10241] Torrey McMahon identified a fix for a crash a number of solaris users have been hitting. not sure why the rest of us haven't been. committer: Tailor Script <tailor@pidgin.im>
author Luke Schierer <lschiere@pidgin.im>
date Tue, 29 Jun 2004 12:29:22 +0000
parents d4e3356e7bbc
children 79c4acbac4cd
files COPYRIGHT src/account.c
diffstat 2 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/COPYRIGHT	Tue Jun 29 08:10:26 2004 +0000
+++ b/COPYRIGHT	Tue Jun 29 12:29:22 2004 +0000
@@ -87,6 +87,7 @@
 John Matthews
 Ryan McCabe
 Kurt McKee
+Torrey McMahon
 Robert McQueen
 Robert Mibus
 Benjamin Miller
--- a/src/account.c	Tue Jun 29 08:10:26 2004 +0000
+++ b/src/account.c	Tue Jun 29 12:29:22 2004 +0000
@@ -1253,7 +1253,7 @@
 		fprintf(fp, "   <setting name='%s' type='int'>%d</setting>\n",
 				name, setting->value.integer);
 	}
-	else if (setting->type == GAIM_PREF_STRING) {
+	else if (setting->type == GAIM_PREF_STRING && setting->value.string != NULL) {
 		fprintf(fp, "   <setting name='%s' type='string'>%s</setting>\n",
 				name, setting->value.string);
 	}