comparison src/gaimrc.c @ 2389:021ba044ab0b

[gaim-migrate @ 2402] handle new versions better. committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Sat, 29 Sep 2001 00:18:50 +0000
parents 5a7234d5e052
children 520257562955
comparison
equal deleted inserted replaced
2388:5a7234d5e052 2389:021ba044ab0b
1054 } 1054 }
1055 1055
1056 if ((f = fopen(buf, "r"))) { 1056 if ((f = fopen(buf, "r"))) {
1057 fgets(buf, sizeof(buf), f); 1057 fgets(buf, sizeof(buf), f);
1058 sscanf(buf, "# .gaimrc v%d", &ver); 1058 sscanf(buf, "# .gaimrc v%d", &ver);
1059 if ((ver <= 3) || (buf[0] != '#')) { 1059 if ((ver <= 3) || (buf[0] != '#'))
1060 fclose(f);
1061 set_defaults(); 1060 set_defaults();
1062 save_prefs();
1063 return;
1064 }
1065 1061
1066 while (!feof(f)) { 1062 while (!feof(f)) {
1067 switch (gaimrc_parse_tag(f)) { 1063 switch (gaimrc_parse_tag(f)) {
1068 case -1: 1064 case -1:
1069 /* Let the loop end, EOF */ 1065 /* Let the loop end, EOF */