linux-trace-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/2] parse-events: deref pointer for proper sizeof()
@ 2019-08-05 10:26 Sergey Senozhatsky
  2019-08-05 10:26 ` [PATCH 2/2] " Sergey Senozhatsky
  2019-08-06  3:21 ` [PATCH 1/2] " Steven Rostedt
  0 siblings, 2 replies; 7+ messages in thread
From: Sergey Senozhatsky @ 2019-08-05 10:26 UTC (permalink / raw)
  To: Steven Rostedt; +Cc: linux-trace-devel, Sergey Senozhatsky

Signed-off-by: Sergey Senozhatsky <sergey.senozhatsky@gmail.com>
---
 parse-events.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/parse-events.c b/parse-events.c
index 3d59d92..807fc53 100644
--- a/parse-events.c
+++ b/parse-events.c
@@ -2058,7 +2058,7 @@ process_fields(struct event_format *event, struct print_flag_sym **list, char **
 			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);
-- 
2.22.0


^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2019-08-06 12:50 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-08-05 10:26 [PATCH 1/2] parse-events: deref pointer for proper sizeof() Sergey Senozhatsky
2019-08-05 10:26 ` [PATCH 2/2] " Sergey Senozhatsky
2019-08-06  3:21 ` [PATCH 1/2] " Steven Rostedt
2019-08-06  5:14   ` Sergey Senozhatsky
2019-08-06  5:41     ` Sergey Senozhatsky
2019-08-06  6:07       ` Sergey Senozhatsky
2019-08-06 12:50         ` Steven Rostedt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).