ui-repolist: do not return unsigned (negative) value 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@linuxtv.org> Signed-off-by: Christian Hesse <mail@eworm.de>
Christian Hesse mail@eworm.de
Fri, 22 Nov 2019 11:09:50 +0100
1 files changed,
1 insertions(+),
1 deletions(-)
jump to
M
ui-repolist.c
→
ui-repolist.c
@@ -20,7 +20,7 @@ struct strbuf date_buf = STRBUF_INIT;
if (readfile(path, &buf, &size)) { free(buf); - return -1; + return 0; } if (parse_date(buf, &date_buf) == 0)