Commit 21699937b0db0da004401c9571ef10203ec134b2

Philip Withnall 2014-08-24T23:10:13

xmlIO: Handle error returns from dup() If dup() fails and returns -1, gzdopen() will transparently return NULL, but then close() will fail after being called on an invalid FD. Change the code to only call close() on valid FDs. Coverity issue: #72382