vendor/libgit2/src/mwindow.c in rugged-0.26.0b3 vs vendor/libgit2/src/mwindow.c in rugged-0.26.0b4

- old
+ new

@@ -12,12 +12,10 @@ #include "map.h" #include "global.h" #include "strmap.h" #include "pack.h" -GIT__USE_STRMAP - #define DEFAULT_WINDOW_SIZE \ (sizeof(void*) >= 8 \ ? 1 * 1024 * 1024 * 1024 \ : 32 * 1024 * 1024) @@ -82,10 +80,10 @@ return error; } git_atomic_inc(&pack->refcount); - git_strmap_insert(git__pack_cache, pack->pack_name, pack, error); + git_strmap_insert(git__pack_cache, pack->pack_name, pack, &error); git_mutex_unlock(&git__mwindow_mutex); if (error < 0) { git_packfile_free(pack); return -1;