aboutsummaryrefslogtreecommitdiffstats
path: root/parse-events.c
diff options
context:
space:
mode:
authorSteven Rostedt <srostedt@redhat.com>2009-10-13 00:58:40 -0400
committerSteven Rostedt <rostedt@goodmis.org>2009-10-13 00:58:40 -0400
commit029428d921172dcf413fd557992b479dd52374d5 (patch)
tree2c2373c6f7db4f95f144ba3f38e02cb35a373705 /parse-events.c
parent10dd98df4bd75ec5629719aeb2e384adfd495fc6 (diff)
fix handling of '['
The left op of the '[' was not initialized to the original top arg. Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'parse-events.c')
-rw-r--r--parse-events.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/parse-events.c b/parse-events.c
index eb3f230..8cdc986 100644
--- a/parse-events.c
+++ b/parse-events.c
@@ -1219,6 +1219,7 @@ process_op(struct event *event, struct print_arg *arg, char **tok)
1219 } else if (strcmp(token, "[") == 0) { 1219 } else if (strcmp(token, "[") == 0) {
1220 1220
1221 left = malloc_or_die(sizeof(*left)); 1221 left = malloc_or_die(sizeof(*left));
1222 *left = *arg;
1222 1223
1223 arg->type = PRINT_OP; 1224 arg->type = PRINT_OP;
1224 arg->op.op = token; 1225 arg->op.op = token;