[PATCH 1/1] ui-repolist: do not return unsigned (negative) value
Christian Hesse
list at eworm.de
Fri Nov 22 11:12:49 CET 2019
From: Christian Hesse <mail at eworm.de>
The function read_agefile() returns time_t, which is a signed datatime.
We should not return unsigned (negative) value here.
Reported-by: Johannes Stezenbach <js at linuxtv.org>
Signed-off-by: Christian Hesse <mail at eworm.de>
---
ui-repolist.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/ui-repolist.c b/ui-repolist.c
index 7cf7638..529a203 100644
--- a/ui-repolist.c
+++ b/ui-repolist.c
@@ -20,7 +20,7 @@ static time_t read_agefile(const char *path)
if (readfile(path, &buf, &size)) {
free(buf);
- return -1;
+ return 0;
}
if (parse_date(buf, &date_buf) == 0)
More information about the CGit
mailing list