Skip to content
This repository was archived by the owner on Jan 6, 2023. It is now read-only.

Commit 1ea94fd

Browse files
author
Ikey Doherty
committed
Fix the return
Signed-off-by: Ikey Doherty <[email protected]>
1 parent 0af37ac commit 1ea94fd

File tree

1 file changed

+1
-1
lines changed
  • src/plugins/output/cli

1 file changed

+1
-1
lines changed

src/plugins/output/cli/cli.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,13 +90,13 @@ static bool cli_write_report(CveCheckTool *self)
9090
}
9191
}
9292
fputc('\n', fd);
93+
ret = true;
9394
goto success;
9495
}
9596

9697
io_error:
9798
fprintf(stderr, "Error writing to file: %s\n", strerror(errno));
9899
success:
99-
ret = true;
100100
if (fd != stdout && self->output_file) {
101101
fclose(fd);
102102
}

0 commit comments

Comments
 (0)