[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20171016165542.13038-2-mikesart@fastmail.com>
Date: Mon, 16 Oct 2017 10:55:39 -0600
From: Michael Sartain <mikesart@...tmail.com>
To: Steven Rostedt <rostedt@...dmis.org>
Cc: Michael Sartain <mikesart@...tmail.com>,
linux-kernel@...r.kernel.org
Subject: [PATCH v2 1/4] trace-cmd: Fix incorrect malloc size arg: *item instead of item
Signed-off-by: Michael Sartain <mikesart@...tmail.com>
---
trace-dialog.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/trace-dialog.c b/trace-dialog.c
index b5776cc..87e597a 100644
--- a/trace-dialog.c
+++ b/trace-dialog.c
@@ -97,7 +97,7 @@ static void push_cursor(GdkCursor *cursor)
{
struct cursor_stack *item;
- item = malloc_or_die(sizeof(item));
+ item = malloc_or_die(sizeof(*item));
item->next = cursor_stack;
cursor_stack = item;
item->cursor = cursor;
--
2.14.2
Powered by blists - more mailing lists