From: Christian Hesse Date: Fri, 22 Nov 2019 10:09:50 +0000 (+0100) Subject: ui-repolist: do not return unsigned (negative) value X-Git-Tag: v1.2.2~4 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=583aa5d80eb01075c0f3f35df37b9144a0c9651e;p=cgit 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 Signed-off-by: Christian Hesse --- 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)