Mercurial > pidgin.yaz
comparison src/account.c @ 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 | 7a8aa87164ae |
children | eae7e049d639 |
comparison
equal
deleted
inserted
replaced
9422:d4e3356e7bbc | 9423:2c6af2767fcf |
---|---|
1251 | 1251 |
1252 if (setting->type == GAIM_PREF_INT) { | 1252 if (setting->type == GAIM_PREF_INT) { |
1253 fprintf(fp, " <setting name='%s' type='int'>%d</setting>\n", | 1253 fprintf(fp, " <setting name='%s' type='int'>%d</setting>\n", |
1254 name, setting->value.integer); | 1254 name, setting->value.integer); |
1255 } | 1255 } |
1256 else if (setting->type == GAIM_PREF_STRING) { | 1256 else if (setting->type == GAIM_PREF_STRING && setting->value.string != NULL) { |
1257 fprintf(fp, " <setting name='%s' type='string'>%s</setting>\n", | 1257 fprintf(fp, " <setting name='%s' type='string'>%s</setting>\n", |
1258 name, setting->value.string); | 1258 name, setting->value.string); |
1259 } | 1259 } |
1260 else if (setting->type == GAIM_PREF_BOOLEAN) { | 1260 else if (setting->type == GAIM_PREF_BOOLEAN) { |
1261 fprintf(fp, " <setting name='%s' type='bool'>%d</setting>\n", | 1261 fprintf(fp, " <setting name='%s' type='bool'>%d</setting>\n", |