diff options
author | Russell Belfer <rb@github.com> | 2014-02-11 14:45:37 -0800 |
---|---|---|
committer | Russell Belfer <rb@github.com> | 2014-04-17 14:43:45 -0700 |
commit | 40ed499039f887ebcb0b5badf0157519148398b8 (patch) | |
tree | abf8307b9960aed3eb6911fadc26bb0627b7ecf2 /src/diff_driver.c | |
parent | 3b4c401a38ce912d5be8c9bf4ab1c4912a4f08bd (diff) | |
download | libgit2-40ed499039f887ebcb0b5badf0157519148398b8.tar.gz |
Add diff threading tests and attr file cache locks
This adds a basic test of doing simultaneous diffs on multiple
threads and adds basic locking for the attr file cache because
that was the immediate problem that arose from these tests.
Diffstat (limited to 'src/diff_driver.c')
-rw-r--r-- | src/diff_driver.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/diff_driver.c b/src/diff_driver.c index 4c9a0af65..8136e0dd9 100644 --- a/src/diff_driver.c +++ b/src/diff_driver.c @@ -66,7 +66,7 @@ git_diff_driver_registry *git_diff_driver_registry_new() if (!reg) return NULL; - if ((reg->drivers = git_strmap_alloc()) == NULL) { + if (git_strmap_alloc(®->drivers) < 0) { git_diff_driver_registry_free(reg); return NULL; } |