diff options
Diffstat (limited to 'user/mimetic/nullptr.patch')
-rw-r--r-- | user/mimetic/nullptr.patch | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/user/mimetic/nullptr.patch b/user/mimetic/nullptr.patch new file mode 100644 index 000000000..340ae37d6 --- /dev/null +++ b/user/mimetic/nullptr.patch @@ -0,0 +1,11 @@ +--- mimetic-0.9.8/mimetic/os/mmfile.cxx.old 2014-06-17 03:12:00.000000000 -0500 ++++ mimetic-0.9.8/mimetic/os/mmfile.cxx 2024-05-30 03:23:16.247921514 -0500 +@@ -57,7 +57,7 @@ + bool MMFile::map() + { + m_beg = (char*) mmap(0, m_st.st_size, PROT_READ, MAP_SHARED,m_fd,0); +- if(m_beg > 0) ++ if(m_beg != nullptr) + { + m_end = m_beg + m_st.st_size; + #if HAVE_MADVISE |