summaryrefslogtreecommitdiff
path: root/tools/perf/builtin-top.c
diff options
context:
space:
mode:
authorNamhyung Kim <namhyung@kernel.org>2024-02-12 23:19:21 +0300
committerNamhyung Kim <namhyung@kernel.org>2024-02-12 23:19:21 +0300
commit39d14c0dd650f3de62242c2f92fb4d7a0ec3386a (patch)
tree4c600896eea221affb50aa2ff34a214868c38d7f /tools/perf/builtin-top.c
parentc7ba9d18ae47924a6ea6a47ca139779f58eb83c0 (diff)
parentfdd0ae72b34e56eb5e896d067c49a78ecb451032 (diff)
downloadlinux-39d14c0dd650f3de62242c2f92fb4d7a0ec3386a.tar.xz
Merge branch 'perf-tools' into perf-tools-next
To get some fixes in the perf test and JSON metrics into the development branch. Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Diffstat (limited to 'tools/perf/builtin-top.c')
-rw-r--r--tools/perf/builtin-top.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/perf/builtin-top.c b/tools/perf/builtin-top.c
index 03cf45088fd8..5ac6dcc64cef 100644
--- a/tools/perf/builtin-top.c
+++ b/tools/perf/builtin-top.c
@@ -357,7 +357,7 @@ static void perf_top__print_sym_table(struct perf_top *top)
static void prompt_integer(int *target, const char *msg)
{
- char *buf = malloc(0), *p;
+ char *buf = NULL, *p;
size_t dummy = 0;
int tmp;