fix babeltrace-log error checking
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Wed, 15 May 2013 14:46:23 +0000 (16:46 +0200)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Wed, 15 May 2013 14:46:23 +0000 (16:46 +0200)
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
converter/babeltrace-log.c

index 52a2fe1de89c195d961780d49d5e760ee2be86d4..537a8bf8aebf401c8c889db59a9382eb75ca47f3 100644 (file)
@@ -358,7 +358,7 @@ int main(int argc, char **argv)
 
        metadata_fd = openat(dir_fd, "metadata", O_RDWR|O_CREAT,
                             S_IRUSR|S_IWUSR|S_IRGRP|S_IWGRP);
-       if (fd < 0) {
+       if (metadata_fd < 0) {
                perror("openat");
                goto error_closedatastream;
        }
This page took 0.031166 seconds and 4 git commands to generate.