projects
/
u
/
mdw
/
putty
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
conf_copy_into must empty the entire target conf before filling it
[u/mdw/putty]
/
conf.c
diff --git
a/conf.c
b/conf.c
index
89bf5c3
..
3268449
100644
(file)
--- 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);