diff options
author | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2012-06-12 19:25:09 +0100 |
---|---|---|
committer | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2012-06-12 19:25:09 +0100 |
commit | 2aeadb9c78df4b463ffb3293e242e19a7e0d17a9 (patch) | |
tree | c81dc60b795f2de01600cbd63dbd16b8933f38d8 /src/mwindow.c | |
parent | 90490113af9cef092b36c5ee0231c11675ed9f51 (diff) | |
download | libgit2-2aeadb9c78df4b463ffb3293e242e19a7e0d17a9.tar.gz |
Actually do the mmap... unsurprisingly, this makes the indexer work on SFS
On RAM: the .idx and .pack files become links to a .lock and the original download respectively.
Assume some feature (such as record locking) supported by SFS but not JXFS or RAM: is required.
Diffstat (limited to 'src/mwindow.c')
-rw-r--r-- | src/mwindow.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mwindow.c b/src/mwindow.c index 57adabd48..74fbf7834 100644 --- a/src/mwindow.c +++ b/src/mwindow.c @@ -158,6 +158,7 @@ static git_mwindow *new_window( git_mwindow *w; w = git__malloc(sizeof(*w)); + if (w == NULL) return NULL; |