changeset 1453:336cae2238ca

test close < 0, from Marco Wenzel
author Matt Johnston <matt@ucc.asn.au>
date Wed, 18 Oct 2017 22:41:27 +0800
parents 15d4b821bcc9
children ef310db5ccec
files dbutil.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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;
 	}