Skip to content

Commit b915870

Browse files
i-PearFlole998
authored andcommitted
dvr: Fix incorrect usage of strerror
`strerror` takes the `errno` directly as its argument, negating it will result in an "Unknown error". Signed-off-by: Tianyi Liu <i.pear@outlook.com>
1 parent 8bd13ca commit b915870

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/dvr/dvr_db.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4933,7 +4933,7 @@ dvr_entry_delete(dvr_entry_t *de)
49334933
r = deferred_unlink(filename, rdir);
49344934
if(r && r != -ENOENT)
49354935
tvhwarn(LS_DVR, "Unable to remove file '%s' from disk -- %s",
4936-
filename, strerror(-errno));
4936+
filename, strerror(errno));
49374937

49384938
cmd = de->de_config->dvr_postremove;
49394939
if (cmd && cmd[0])

0 commit comments

Comments
 (0)