Clear out any leftover preference information. Fix up whitespace.

svn path=/trunk/; revision=14693
This commit is contained in:
Gerald Combs 2005-06-18 20:57:01 +00:00
parent f4e36cdc6c
commit c62e906508
1 changed files with 6 additions and 3 deletions

View File

@ -1176,13 +1176,16 @@ read_prefs_file(const char *pf_path, FILE *pf, pref_set_pair_cb pref_set_pair_fc
gchar hint[] = "(saving your preferences once should remove this warning)";
if (! cur_val) {
cur_val = g_string_new("");
cur_val = g_string_new("");
}
if (! cur_var) {
cur_var = g_string_new("");
cur_var = g_string_new("");
}
g_string_truncate(cur_val, 0);
g_string_truncate(cur_var, 0);
while ((got_c = getc(pf)) != EOF) {
if (got_c == '\n') {
state = START;