Don't call close() on -1
authorTor Lillqvist <tml@iki.fi>
Thu, 7 Oct 2010 09:04:52 +0000 (12:04 +0300)
committerTor Lillqvist <tml@iki.fi>
Thu, 7 Oct 2010 09:06:48 +0000 (12:06 +0300)
commit46390c9d107b6df55de458b3ffe47a5428d7f287
tree59b7917e0d9dc57f555508a230d49658072bedac
parent200e3d7307df75803c03a2aebcbba0dc5eaa9161
Don't call close() on -1

Of course, a proper implementation of close() will just ignore an
invalid parameter silently, and set errno. But apparently the "debug"
version of the Microsoft C library generates some noise in this
case. So avoid that. Thanks to John Emmas for reporting.
tests/testglib.c