-rw-r--r-- | scan-tree.c | 1 | ||||
-rw-r--r-- | ui-repolist.c | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/scan-tree.c b/scan-tree.c index cdafb02..47f3988 100644 --- a/scan-tree.c +++ b/scan-tree.c @@ -44,2 +44,3 @@ char *readfile(const char *path) return NULL; + buf[0] = 0; fgets(buf, MAX_PATH, f); diff --git a/ui-repolist.c b/ui-repolist.c index 25f076f..6d2f93f 100644 --- a/ui-repolist.c +++ b/ui-repolist.c @@ -25,2 +25,3 @@ time_t read_agefile(char *path) return -1; + buf[0] = 0; if (fgets(buf, sizeof(buf), f) == NULL) |