diff options
author | Vicent Marti <tanoku@gmail.com> | 2012-08-27 14:54:52 -0700 |
---|---|---|
committer | Vicent Marti <tanoku@gmail.com> | 2012-08-27 14:54:52 -0700 |
commit | 62eafd0620eff3d7ca3659a3f4a4808488f0b2c3 (patch) | |
tree | c0f29b20a9e8194ccfb0ea59ad55b56bed803206 /src/unix/map.c | |
parent | bd2887a5e5d823b2fc9debef245bcd865ba3dd83 (diff) | |
parent | 1c947daa80dfa442acbf8119530a3dcbf5af00c5 (diff) | |
download | libgit2-62eafd0620eff3d7ca3659a3f4a4808488f0b2c3.tar.gz |
Merge branch 'branch-delete-ref' into development
Conflicts:
include/git2/refs.h
Diffstat (limited to 'src/unix/map.c')
-rw-r--r-- | src/unix/map.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/unix/map.c b/src/unix/map.c index 9dcae584..ee7888c1 100644 --- a/src/unix/map.c +++ b/src/unix/map.c @@ -31,6 +31,8 @@ int p_mmap(git_map *out, size_t len, int prot, int flags, int fd, git_off_t offs mflag = MAP_SHARED; else if ((flags & GIT_MAP_TYPE) == GIT_MAP_PRIVATE) mflag = MAP_PRIVATE; + else + mflag = MAP_SHARED; out->data = mmap(NULL, len, mprot, mflag, fd, offset); |