X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/blobdiff_plain/ebe8092cc3f471e782af299699284e9142f11696..cfce7239bb87f74d38c81f83ebd8e852144b5baa:/conf.c diff --git a/conf.c b/conf.c index 89bf5c3b..32684499 100644 --- a/conf.c +++ b/conf.c @@ -199,6 +199,8 @@ void conf_copy_into(Conf *newconf, Conf *oldconf) struct conf_entry *entry, *entry2; int i; + conf_clear(newconf); + for (i = 0; (entry = index234(oldconf->tree, i)) != NULL; i++) { entry2 = snew(struct conf_entry); copy_key(&entry2->key, &entry->key);