more debugging updates
[srvx.git] / src / log.c
index 8e2600ac0b3fd2a04bf44cc18538c9a2a4eb41c3..ef64835cec99f8b27e1a41b103499c818f9ee722 100644 (file)
--- a/src/log.c
+++ b/src/log.c
@@ -723,7 +723,7 @@ log_entry_search(struct logSearch *discrim, entry_search_func esf, void *data)
     unsigned int matched = 0;
 
     if (discrim->type) {
-        volatile struct logEntry *last;
+        static volatile struct logEntry *last;
         struct logEntry *entry;
 
         for (entry = discrim->type->log_oldest, last = NULL;