Keep saving nodes only once, but make an exception for node 'all'.

Fixes bug-799, at least partially (diffpair.cir is running again.).
This commit is contained in:
Holger Vogt 2025-07-27 16:40:55 +02:00
parent 955b379932
commit 3230f5c740
1 changed files with 3 additions and 2 deletions

View File

@ -92,10 +92,11 @@ settrace(wordlist *wl, int what, char *name)
continue;
}
/* Don't save a nodename more than once */
/* Don't save a nodename more than once, except for token 'all' */
if (db_type == DB_SAVE) {
for (dbcheck = dbs; dbcheck; dbcheck = dbcheck->db_next) {
if (dbcheck->db_type == DB_SAVE && eq(dbcheck->db_nodename1, db_nodename1)) {
if (dbcheck->db_type == DB_SAVE && eq(dbcheck->db_nodename1, db_nodename1) &&
!eq("all", db_nodename1)) {
tfree(db_nodename1);
goto loopend;
}