• Michal 'vorner' Vaner's avatar
    Make sure errno doesn't leak from other calls · 8a60e5d0
    Michal 'vorner' Vaner authored
    Previously, something else than the readdir could set errno (possibly
    something in lua), making the whole function fail. Make sure the errno
    is reset before each call to readdir, therefore if there's an error, it
    must come from that.
    8a60e5d0