Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752247AbdHLRlx (ORCPT ); Sat, 12 Aug 2017 13:41:53 -0400 Received: from out4-smtp.messagingengine.com ([66.111.4.28]:59549 "EHLO out4-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752024AbdHLRl2 (ORCPT ); Sat, 12 Aug 2017 13:41:28 -0400 X-ME-Sender: X-Sasl-enc: bolT16neg5gRWrWmIaW+58nm+MxKVbwVoHObwlnpAN8f 1502559071 From: Michael Sartain To: Steven Rostedt Cc: Michael Sartain , linux-kernel@vger.kernel.org Subject: [PATCH 1/5] trace-cmd: Fix incorrect malloc size arg: *item instead of item Date: Sat, 12 Aug 2017 11:30:43 -0600 Message-Id: <20170812173047.840-2-mikesart@fastmail.com> X-Mailer: git-send-email 2.13.2 In-Reply-To: <20170812173047.840-1-mikesart@fastmail.com> References: <20170812173047.840-1-mikesart@fastmail.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 507 Lines: 20 Signed-off-by: Michael Sartain --- 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.13.2