Skip to contentSkip to conversation

trace, filters: Initialize the match variable in process_ops() properly

tip:perf/urgent tip-bot for Ingo Molnar 1 participant 1 message Mar 18, 2011 Tracing

lore
Share & tools
lore
#0 lore raw
Commit-ID:  1ef1d1c2353967e2d61ecaddf76edfd058a778b4
Gitweb:     http://git.kernel.org/tip/1ef1d1c2353967e2d61ecaddf76edfd058a778b4
Author:     Ingo Molnar <[email protected]>
AuthorDate: Fri, 18 Mar 2011 14:41:27 +0100
Committer:  Ingo Molnar <[email protected]>
CommitDate: Fri, 18 Mar 2011 14:41:27 +0100

trace, filters: Initialize the match variable in process_ops() properly

Make sure the 'match' variable always has a value.

Cc: Steven Rostedt <[email protected]>
Cc: Frederic Weisbecker <[email protected]>
LKML-Reference: <new-submission>

---
 kernel/trace/trace_events_filter.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
kernel/trace/trace_events_filter.c +1 -1
index 3249b4f..8008ddc 100644
@@ -391,8 +391,8 @@ static int process_ops(struct filter_pred *preds,
 		       struct filter_pred *op, void *rec)
 {
 	struct filter_pred *pred;
+	int match = 0;
 	int type;
-	int match;
 	int i;
 
 	/*