diff options
author | Steven Rostedt <srostedt@redhat.com> | 2010-02-16 09:36:09 -0500 |
---|---|---|
committer | Steven Rostedt <rostedt@goodmis.org> | 2010-02-16 09:36:09 -0500 |
commit | e6dc364b1d6530bcc30de99e73e39e6e3d45361d (patch) | |
tree | b06c07d3989b2ee7015c983e716e18bd6b1371b3 | |
parent | 64a6a5ae05b906d6cbf9b5b1c1e78f752bb45b77 (diff) |
parse-events: Fix comma delimited filters
The comma deliminating event names was not being processed correctly.
The index pointer was stuck at the comma instead of the next event name
and this caused the filtering to fail.
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
-rw-r--r-- | parse-filter.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/parse-filter.c b/parse-filter.c index 6a0cad7..15b3d16 100644 --- a/parse-filter.c +++ b/parse-filter.c | |||
@@ -687,6 +687,9 @@ int pevent_filter_add_filter_str(struct event_filter *filter, | |||
687 | memcpy(this_event, filter_str, len); | 687 | memcpy(this_event, filter_str, len); |
688 | this_event[len] = 0; | 688 | this_event[len] = 0; |
689 | 689 | ||
690 | if (next_event) | ||
691 | next_event++; | ||
692 | |||
690 | filter_str = next_event; | 693 | filter_str = next_event; |
691 | 694 | ||
692 | sys_name = strtok_r(this_event, "/", &sp); | 695 | sys_name = strtok_r(this_event, "/", &sp); |