diff dbutil.c @ 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 bbc0a0ee3843
children 4afde04f0607 fb90a5ba84e0
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;
 	}