Skip to content
Snippets Groups Projects
Commit de00c751 authored by Fons Rademakers's avatar Fons Rademakers
Browse files

protect against SysClose() being called with fD < 0 (happens in case of

net or webfiles).


git-svn-id: http://root.cern.ch/svn/root/trunk@20805 27541ba8-7e3a-0410-8455-c3a389f83636
parent 4927abc3
Branches
Tags
No related merge requests found
...@@ -2760,6 +2760,7 @@ Int_t TFile::SysClose(Int_t fd) ...@@ -2760,6 +2760,7 @@ Int_t TFile::SysClose(Int_t fd)
{ {
// Interface to system close. All arguments like in POSIX close(). // Interface to system close. All arguments like in POSIX close().
if (fd < 0) return 0;
return ::close(fd); return ::close(fd);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment