X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=blobdiff_plain;f=converter%2Fbabeltrace-log.c;fp=converter%2Fbabeltrace-log.c;h=537a8bf8aebf401c8c889db59a9382eb75ca47f3;hp=52a2fe1de89c195d961780d49d5e760ee2be86d4;hb=9396a9823f091c4ea3752ada3ef65cd05c9120b3;hpb=9544a40b914f43d5b81956908633973366b45fc9 diff --git a/converter/babeltrace-log.c b/converter/babeltrace-log.c index 52a2fe1d..537a8bf8 100644 --- a/converter/babeltrace-log.c +++ b/converter/babeltrace-log.c @@ -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; }