summaryrefslogtreecommitdiff
path: root/user/mimetic/nullptr.patch
blob: 340ae37d6934493cef79e475c783195897f2aa89 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
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