summaryrefslogtreecommitdiffstats
path: root/profile.c
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2013-02-01 00:07:04 +1100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2013-02-01 00:07:04 +1100
commit0f2fac265fb876de971a2849bec69c51161d7a74 (patch)
tree396cc32dad86fea20a0d709bb4b63bc2c27bb7ae /profile.c
parent6f66781b1fe99d0157abc0a7f2220e4adaf2e431 (diff)
downloadsubsurface-0f2fac265fb876de971a2849bec69c51161d7a74.tar.gz
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>
Diffstat (limited to 'profile.c')
-rw-r--r--profile.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/profile.c b/profile.c
index 130b32407..6f2e64664 100644
--- a/profile.c
+++ b/profile.c
@@ -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;