Skip to content
  • Hallvard Furuseth's avatar
    Clean up MAP_FAILED handling in mdb. · d3b9939e
    Hallvard Furuseth authored
    Delay (MDB_txninfo*) cast to after comparing mmap() with MAP_FAILED.
    Otherwise, if MAP_FAILED = (void*)-1 but MDB_txninfo requires stricter
    alignment, the compiler could assume the result is never MAP_FAILED.
    
    Also store NULL in env->(me_map, me_txns) after mmap failure.
    d3b9939e