From 8f5b4dfbf84a2fe49108e7d36edbf6ebc9542921 Mon Sep 17 00:00:00 2001 From: Sebastian Dransfeld Date: Sun, 31 Dec 2006 13:01:34 +0000 Subject: [PATCH] Always set the current file version at end of config. Don't update config when checking for file version. SVN revision: 27698 --- src/bin/e_config.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/bin/e_config.c b/src/bin/e_config.c index e54c9b0af..2e3a2a22d 100644 --- a/src/bin/e_config.c +++ b/src/bin/e_config.c @@ -548,8 +548,7 @@ e_config_init(void) e_config->config_version = (E_CONFIG_FILE_EPOCH << 16); } #define IFCFG(v) \ - if ((e_config->config_version & 0xffff) < (v)) { \ - e_config->config_version = (e_config->config_version & 0xffff0000) | (v) + if ((e_config->config_version & 0xffff) < (v)) { #define IFCFGEND } IFCFG(0x008d); e_config->show_splash = 1; @@ -1293,7 +1292,9 @@ e_config_init(void) 800 - 32, NULL, 0, 0); } IFCFGEND; - + + e_config->config_version = E_CONFIG_FILE_VERSION; + #if 0 /* example of new config */ IFCFG(0x0090); /* the version # where this value(s) was introduced */ e_config->new_value = 10; /* set the value(s) */