From 2a02a03625451ff77fa159531108b5d369c1d8f4 Mon Sep 17 00:00:00 2001 From: Boris Faure Date: Tue, 12 Nov 2019 10:57:01 +0100 Subject: [PATCH] config: add error message if config is from a new Terminology Also mark it as temporary --- src/bin/config.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/bin/config.c b/src/bin/config.c index 3566d611..97e10a94 100644 --- a/src/bin/config.c +++ b/src/bin/config.c @@ -736,10 +736,12 @@ config_load(void) if (config->version < CONF_VER) { // currently no upgrade path so reset config. + ERR("config is from a newer Terminology, discard it"); config_del(config); - config = NULL; + config = config_new(); + config->temporary = EINA_TRUE; } - /* do no thing in case the config is from a newer + /* do nothing in case the config is from a newer * terminology, we don't want to remove it. */ } }