From 2d376b45845b70c63f098d8660233a2aab2ae6b1 Mon Sep 17 00:00:00 2001 From: OBattler Date: Mon, 26 Jul 2021 05:07:13 +0200 Subject: [PATCH] The legacy SCSI configuration option is now always removed on config save, fixes #1561 . --- src/config.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/config.c b/src/config.c index f9347a0a4..9f06262b8 100644 --- a/src/config.c +++ b/src/config.c @@ -2439,14 +2439,16 @@ save_storage_controllers(void) char temp[512]; int c; + config_delete_var(cat, "scsicard"); + for (c = 0; c < SCSI_BUS_MAX; c++) { sprintf(temp, "scsicard_%d", c + 1); if (scsi_card_current[c] == 0) config_delete_var(cat, temp); else - config_set_string(cat, temp, - scsi_card_get_internal_name(scsi_card_current[c])); + config_set_string(cat, temp, + scsi_card_get_internal_name(scsi_card_current[c])); } if (fdc_type == FDC_INTERNAL)