diff options
Diffstat (limited to 'trace-record.c')
-rw-r--r-- | trace-record.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/trace-record.c b/trace-record.c index cdfc857..2a754b9 100644 --- a/trace-record.c +++ b/trace-record.c | |||
@@ -116,7 +116,7 @@ struct tracecmd_recorder *tracecmd_create_recorder(const char *file, int cpu) | |||
116 | int fd; | 116 | int fd; |
117 | 117 | ||
118 | fd = open(file, O_WRONLY | O_CREAT | O_TRUNC | O_LARGEFILE, 0644); | 118 | fd = open(file, O_WRONLY | O_CREAT | O_TRUNC | O_LARGEFILE, 0644); |
119 | if (recorder->fd < 0) | 119 | if (fd < 0) |
120 | return NULL; | 120 | return NULL; |
121 | 121 | ||
122 | recorder = tracecmd_create_recorder_fd(fd, cpu); | 122 | recorder = tracecmd_create_recorder_fd(fd, cpu); |