jessek / hashdeep

Other
702 stars 132 forks source link

Fix errors found by clang #361

Closed kraj closed 7 years ago

kraj commented 7 years ago

Fixes errors like

../../git/src/hash.cpp:282:19: error: ordered comparison between pointer and zero ('const unsigned char *' and 'int') if(fdht->base>0){



Signed-off-by: Khem Raj <raj.khem@gmail.com>
fxcoudert commented 7 years ago

This issue prevents compilation on macOS 10.13 (with Xcode 9). The fix in the pull request is correct. Alternatively, MAP_FAILED could be used instead of (void *) -1.

Please merge.