diff options
Diffstat (limited to 'tools/perf/builtin-probe.c')
-rw-r--r-- | tools/perf/builtin-probe.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/tools/perf/builtin-probe.c b/tools/perf/builtin-probe.c index 152d6c9b1fa4..b6afe7b344dd 100644 --- a/tools/perf/builtin-probe.c +++ b/tools/perf/builtin-probe.c | |||
@@ -87,9 +87,7 @@ static void parse_probe_event_argv(int argc, const char **argv) | |||
87 | len = 0; | 87 | len = 0; |
88 | for (i = 0; i < argc; i++) | 88 | for (i = 0; i < argc; i++) |
89 | len += strlen(argv[i]) + 1; | 89 | len += strlen(argv[i]) + 1; |
90 | buf = zalloc(len + 1); | 90 | buf = xzalloc(len + 1); |
91 | if (!buf) | ||
92 | die("Failed to allocate memory for binding arguments."); | ||
93 | len = 0; | 91 | len = 0; |
94 | for (i = 0; i < argc; i++) | 92 | for (i = 0; i < argc; i++) |
95 | len += sprintf(&buf[len], "%s ", argv[i]); | 93 | len += sprintf(&buf[len], "%s ", argv[i]); |