projects
/
xboard.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
Fix usage of memory after free in -replace option
[xboard.git]
/
backend.c
diff --git
a/backend.c
b/backend.c
index
4f1aad8
..
47b443b
100644
(file)
--- a/
backend.c
+++ b/
backend.c
@@
-11449,6
+11449,7
@@
RecentEngineEvent (int nr)
if(mnemonic[n]) { // if somehow the engine with the selected nickname is no longer found in the list, we skip
ReplaceEngine(&first, 0);
FloatToFront(&appData.recentEngineList, command[n]);
+ ASSIGN(currentEngine[0], command[n]);
}
}