# HG changeset patch # User Matt Johnston # Date 1508337687 -28800 # Node ID 336cae2238ca5d3d3bc320dad3ec8f4afcc20622 # Parent 15d4b821bcc9da01daab72a928017600664ce0ad test close < 0, from Marco Wenzel diff -r 15d4b821bcc9 -r 336cae2238ca dbutil.c --- a/dbutil.c Wed Oct 04 22:30:18 2017 +0800 +++ b/dbutil.c Wed Oct 18 22:41:27 2017 +0800 @@ -506,7 +506,7 @@ void m_close(int fd) { int val; - if (fd == -1) { + if (fd < 0) { return; }