X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=dir.c;h=d1e5e5e5bfaea81cb46fc3e3f57df31c6ef1eb2a;hb=9659df52822a2fd7f85725d2ff680871b1f3bdc7;hp=151ea670d961d39394990f122469557b6f217de3;hpb=bff6e86b3d01febaa2d73ff4e890f091999e9e28;p=git.git diff --git a/dir.c b/dir.c index 151ea670d..d1e5e5e5b 100644 --- a/dir.c +++ b/dir.c @@ -232,7 +232,7 @@ int add_excludes_from_file_to_list(const char *fname, { struct stat st; int fd, i; - size_t size; + size_t size = 0; char *buf, *entry; fd = open(fname, O_RDONLY); @@ -453,7 +453,7 @@ static struct dir_entry *dir_add_name(struct dir_struct *dir, const char *pathna return dir->entries[dir->nr++] = dir_entry_new(pathname, len); } -static struct dir_entry *dir_add_ignored(struct dir_struct *dir, const char *pathname, int len) +struct dir_entry *dir_add_ignored(struct dir_struct *dir, const char *pathname, int len) { if (!cache_name_is_other(pathname, len)) return NULL;