X-Git-Url: http://git.pk910.de/?a=blobdiff_plain;f=src%2Flog.c;fp=src%2Flog.c;h=ef64835cec99f8b27e1a41b103499c818f9ee722;hb=d06729d5aea6b91b675ab3e982b27c282dc47801;hp=8e2600ac0b3fd2a04bf44cc18538c9a2a4eb41c3;hpb=8133e937bc680adafdc49ee2d962f10a6b39bb1a;p=srvx.git diff --git a/src/log.c b/src/log.c index 8e2600a..ef64835 100644 --- 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;