From 1318d845baa61bb291df9b9750575dbbf42b531e Mon Sep 17 00:00:00 2001 From: Nigel Horne Date: Wed, 16 Feb 2005 22:19:21 +0000 Subject: [PATCH] Check file close git-svn: trunk@1343 --- clamav-devel/libclamav/untar.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/clamav-devel/libclamav/untar.c b/clamav-devel/libclamav/untar.c index 7e58b0a5c..ce2c7f973 100644 --- a/clamav-devel/libclamav/untar.c +++ b/clamav-devel/libclamav/untar.c @@ -21,6 +21,9 @@ * * Change History: * $Log: untar.c,v $ + * Revision 1.21 2005/02/16 22:19:21 nigelhorne + * Check file close + * * Revision 1.20 2005/02/13 22:25:41 kojm * do not try to continue if there's no space on device * @@ -82,7 +85,7 @@ * First draft * */ -static char const rcsid[] = "$Id: untar.c,v 1.20 2005/02/13 22:25:41 kojm Exp $"; +static char const rcsid[] = "$Id: untar.c,v 1.21 2005/02/16 22:19:21 nigelhorne Exp $"; #include #include @@ -291,6 +294,7 @@ cli_untar(const char *dir, int desc) in_block = 0; } if(outfile) - fclose(outfile); + return fclose(outfile); + return 0; }