mirror of
https://git.zx2c4.com/cgit
synced 2024-11-08 09:38:41 +00:00
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>
This commit is contained in:
parent
bfabd4519c
commit
583aa5d80e
@ -20,7 +20,7 @@ static time_t read_agefile(const char *path)
|
|||||||
|
|
||||||
if (readfile(path, &buf, &size)) {
|
if (readfile(path, &buf, &size)) {
|
||||||
free(buf);
|
free(buf);
|
||||||
return -1;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (parse_date(buf, &date_buf) == 0)
|
if (parse_date(buf, &date_buf) == 0)
|
||||||
|
Loading…
Reference in New Issue
Block a user