diff options
-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 9dcae5845..ee7888c17 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); |