gnugo/bugzilla-225902.patch

13 lines
552 B
Diff

diff -ru gnugo-3.7.10/engine/persistent.c gnugo-3.7.10.new/engine/persistent.c
--- gnugo-3.7.10/engine/persistent.c 2006-05-21 19:04:27.000000000 +0200
+++ gnugo-3.7.10.new/engine/persistent.c 2006-12-05 19:19:48.000000000 +0100
@@ -440,7 +440,7 @@
print_persistent_cache_entry(entry);
}
/* FIXME: This is an ugly hack. */
- if (cache->name == "reading cache"
+ if (0 == strcmp(cache->name, "reading cache")
&& (debug & DEBUG_READING_PERFORMANCE)
&& entry->cost >= MIN_READING_NODES_TO_REPORT) {
if (entry->result != 0)