X-Git-Url: https://gitweb.ps.run/ps-cgit/blobdiff_plain/d6174b7aab476c2b6a86e59d98cf978d603045f4..011f2e9bdddcbfe65da397629bca87d167313a28:/ui-repolist.c diff --git a/ui-repolist.c b/ui-repolist.c index 2c13d50..3aedde5 100644 --- a/ui-repolist.c +++ b/ui-repolist.c @@ -23,6 +23,7 @@ time_t read_agefile(char *path) if (!(f = fopen(path, "r"))) return -1; + buf[0] = 0; if (fgets(buf, sizeof(buf), f) == NULL) return -1; fclose(f);