summaryrefslogtreecommitdiff
path: root/src/attr_file.c
diff options
context:
space:
mode:
authorRussell Belfer <rb@github.com>2014-04-11 12:12:47 -0700
committerRussell Belfer <rb@github.com>2014-04-17 14:56:41 -0700
commit2e9d813bd69ab014b970a75b5a4f7d24f241cc05 (patch)
tree1a69b430eeb000dde22cd185571c79cb818f842d /src/attr_file.c
parent7d4908724fd7d4d8e096b4faf2c652ba5b77644e (diff)
downloadlibgit2-2e9d813bd69ab014b970a75b5a4f7d24f241cc05.tar.gz
Fix tests with new attr cache code
Diffstat (limited to 'src/attr_file.c')
-rw-r--r--src/attr_file.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/attr_file.c b/src/attr_file.c
index 86b3448ee..66f71ad19 100644
--- a/src/attr_file.c
+++ b/src/attr_file.c
@@ -23,9 +23,7 @@ int git_attr_file__new(
git_attr_file *attrs = git__calloc(1, sizeof(git_attr_file));
GITERR_CHECK_ALLOC(attrs);
- if (git_pool_init(&attrs->pool, 1, 0) < 0 ||
- git_vector_init(&attrs->rules, 0, NULL) < 0)
- {
+ if (git_pool_init(&attrs->pool, 1, 0) < 0) {
attr_file_free(attrs);
return -1;
}