summaryrefslogtreecommitdiff
path: root/security/md5deep/files/patch-src_hash.cpp
blob: 285059c3f423566c94b9f325b564f00bc06a1734 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
--- src/hash.cpp.orig	2014-01-29 18:40:39 UTC
+++ src/hash.cpp
@@ -279,7 +279,7 @@ void file_data_hasher_t::hash()
 		MAP_FILE|
 #endif
 		MAP_SHARED,fd,0);
-	    if(fdht->base>0){		
+	    if(fdht->base != nullptr){		
 		/* mmap is successful, so set the bounds.
 		 * if it is not successful, we default to reading the fd
 		 */