diff --git a/source/lib/res/file.cpp b/source/lib/res/file.cpp index 27eb47e236..560bcf5555 100755 --- a/source/lib/res/file.cpp +++ b/source/lib/res/file.cpp @@ -1365,7 +1365,6 @@ int file_map(File* const f, void*& p, size_t& size) if(f->size == 0) return -1; - const int prot = (f->flags & FILE_WRITE)? PROT_WRITE : PROT_READ; f->mapping = mmap((void*)0, f->size, prot, MAP_PRIVATE, f->fd, (off_t)0); if(!f->mapping) return ERR_NO_MEM;