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:
cperciva 2008-08-04 06:48:54 +00:00
parent 55239b4ba7
commit 16fd05844b

View File

@ -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;