perf tools: Correct size given to memset
[linux-2.6.git] / tools / perf / util / trace-event-parse.c
index 6ffe9d6..c5c32be 100644 (file)
@@ -1477,7 +1477,7 @@ process_fields(struct event *event, struct print_flag_sym **list, char **tok)
                        goto out_free;
 
                field = malloc_or_die(sizeof(*field));
-               memset(field, 0, sizeof(field));
+               memset(field, 0, sizeof(*field));
 
                value = arg_eval(arg);
                field->value = strdup(value);