This is an automatic generated email to let you know that the following patch were queued at the http://git.linuxtv.org/cgit.cgi/v4l-utils.git tree:
Subject: ir-ctl: clear errno before strtol Author: Vince Ricosti <vrico...@outlook.com> Date: Fri Mar 8 12:39:35 2024 +0000 Since strtol does not update errno except for overflow conditions it's better to set it to 0 first, since we always check the value of errno after strtol. Signed-off-by: Vince Ricosti <vrico...@outlook.com> Signed-off-by: Sean Young <s...@mess.org> utils/ir-ctl/ir-ctl.c | 1 + 1 file changed, 1 insertion(+) --- http://git.linuxtv.org/cgit.cgi/v4l-utils.git/commit/?id=a18611d8960ff0aefb1c57f15396f4e948e9df3f diff --git a/utils/ir-ctl/ir-ctl.c b/utils/ir-ctl/ir-ctl.c index c480a2b1734d..e662651e4261 100644 --- a/utils/ir-ctl/ir-ctl.c +++ b/utils/ir-ctl/ir-ctl.c @@ -413,6 +413,7 @@ static struct send *read_file_raw(struct arguments *args, const char *fname, FIL (keyword[0] == '/' && keyword[1] == '/')) break; + errno = 0; value = strtol(keyword, &p, 10); if (errno || *p) { fprintf(stderr, _("%s:%d: error: expected integer, got `%s'\n"),