From c211c53d323a07a5c8ea0043c32b3f29ba45065a Mon Sep 17 00:00:00 2001 From: OBattler Date: Thu, 27 Jul 2017 15:38:07 +0200 Subject: [PATCH] Fixed the compile-breaking mistake. --- src/config.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/config.c b/src/config.c index 105274cbb..1dbbd28f6 100644 --- a/src/config.c +++ b/src/config.c @@ -874,11 +874,14 @@ static void loadconfig_machine(void) p = config_get_string(cat, "model", NULL); if (p != NULL) { - model = model_get_model_from_internal_name(p); /* Detect the old model typo and fix it, so that old configurations don't braek. */ - if (strcmp(model, "p55r2p4") == 0) + if (strcmp(p, "p55r2p4") == 0) { - model[3] = 't'; + model = model_get_model_from_internal_name("p55t2p4"); + } + else + { + model = model_get_model_from_internal_name(p); } } else