diff options
Diffstat (limited to 'tools/perf/util/run-command.c')
-rw-r--r-- | tools/perf/util/run-command.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/perf/util/run-command.c b/tools/perf/util/run-command.c index a3935343091a..2b615acf94d7 100644 --- a/tools/perf/util/run-command.c +++ b/tools/perf/util/run-command.c | |||
@@ -262,7 +262,7 @@ int run_hook(const char *index_file, const char *name, ...) | |||
262 | { | 262 | { |
263 | struct child_process hook; | 263 | struct child_process hook; |
264 | const char **argv = NULL, *env[2]; | 264 | const char **argv = NULL, *env[2]; |
265 | char index[PATH_MAX]; | 265 | char idx[PATH_MAX]; |
266 | va_list args; | 266 | va_list args; |
267 | int ret; | 267 | int ret; |
268 | size_t i = 0, alloc = 0; | 268 | size_t i = 0, alloc = 0; |
@@ -284,8 +284,8 @@ int run_hook(const char *index_file, const char *name, ...) | |||
284 | hook.no_stdin = 1; | 284 | hook.no_stdin = 1; |
285 | hook.stdout_to_stderr = 1; | 285 | hook.stdout_to_stderr = 1; |
286 | if (index_file) { | 286 | if (index_file) { |
287 | snprintf(index, sizeof(index), "PERF_INDEX_FILE=%s", index_file); | 287 | snprintf(idx, sizeof(idx), "PERF_INDEX_FILE=%s", index_file); |
288 | env[0] = index; | 288 | env[0] = idx; |
289 | env[1] = NULL; | 289 | env[1] = NULL; |
290 | hook.env = env; | 290 | hook.env = env; |
291 | } | 291 | } |