• Moshe Kaplan's avatar
    rdb.c: Avoid potential file handle leak (Coverity 404720) (#12795) · c9aa586b
    Moshe Kaplan authored
    `open()` can return any non-negative integer on success, including zero.
    This change modifies the check from open()'s return value to also
    include checking for a return value of zero (e.g., if stdin were closed
    and then `open()` was called).
    
    Fixes Coverity 404720
    
    Can't happen in Redis. just a cleanup.
    c9aa586b
rdb.c 143 KB