Clear the list of events when closing data file

When the data file is closed we should reset the events that we offer for
filtering.

Reported-by: Sergey Starosek <sergey.starosek@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2013-02-01 00:07:04 +11:00
parent 6f66781b1f
commit 0f2fac265f
3 changed files with 7 additions and 0 deletions

View file

@ -313,6 +313,11 @@ void evn_foreach(void (*callback)(const char *, int *, void *), void *data)
}
}
void clear_events(void)
{
evn_used = 0;
}
void remember_event(const char *eventname)
{
int i = 0, len;