Don't close file descriptor number <whatever random garbage was on the
stack>. Found by: LLVM/Clang Static Checker MFC after: 1 week
This commit is contained in:
parent
5fe69bb518
commit
d59e8ae886
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=181279
@ -57,6 +57,7 @@ main(int argc, char **argv)
|
||||
int ch, error, fd, oflags;
|
||||
char *fname, *rname;
|
||||
|
||||
fd = -1;
|
||||
rsize = tsize = 0;
|
||||
error = 0;
|
||||
rname = NULL;
|
||||
|
Loading…
Reference in New Issue
Block a user