Diffstat (limited to 'ui-repolist.c')
| -rw-r--r-- | ui-repolist.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/ui-repolist.c b/ui-repolist.c index c23232c..ab050c7 100644 --- a/ui-repolist.c +++ b/ui-repolist.c @@ -19,8 +19,7 @@ time_t read_agefile(char *path) if (!(f = fopen(path, "r"))) return -1; - if (fgets(buf, sizeof(buf), f) == NULL) - return -1; + fgets(buf, sizeof(buf), f); fclose(f); if (parse_date(buf, buf2, sizeof(buf2))) return strtoul(buf2, NULL, 10); |