summaryrefslogtreecommitdiff
path: root/src/fileops.c
diff options
context:
space:
mode:
authorRamsay Jones <ramsay@ramsay1.demon.co.uk>2010-01-03 19:12:05 +0000
committerRamsay Jones <ramsay@ramsay1.demon.co.uk>2010-01-20 20:17:56 +0000
commit803a6b4d418c4b2d7463bf23a86a09cb2359ec98 (patch)
treef3687dc858ea475e3691834bf4ec00a2fe8c3b27 /src/fileops.c
parent1cfb0ff4b6193c409e846a5992683559afd4be07 (diff)
downloadlibgit2-803a6b4d418c4b2d7463bf23a86a09cb2359ec98.tar.gz
Save the git_file in the gitfo_cache when enabling caching
Signed-off-by: Ramsay Jones <ramsay@ramsay1.demon.co.uk>
Diffstat (limited to 'src/fileops.c')
-rw-r--r--src/fileops.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/fileops.c b/src/fileops.c
index b2dea1ed6..d1621f2e3 100644
--- a/src/fileops.c
+++ b/src/fileops.c
@@ -151,6 +151,7 @@ gitfo_cache *gitfo_enable_caching(git_file fd, size_t cache_size)
if (!ioc)
return NULL;
+ ioc->fd = fd;
ioc->pos = 0;
ioc->cache_size = cache_size;
ioc->cache = git__malloc(cache_size);