Browse code

Minor code tidy

git-svn: trunk@3680

Nigel Horne authored on 2008/02/27 19:27:05
Showing 2 changed files
... ...
@@ -1,3 +1,7 @@
1
+Wed Feb 27 09:29:23 GMT 2008 (njh)
2
+---------------------------------
3
+  * libclamav/vba_extract.c:	Minor code tidy
4
+
1 5
 Tue Feb 26 23:21:59 EET 2008 (edwin)
2 6
 ------------------------------------
3 7
   * libclamav/htmlnorm.c: better script end detection
... ...
@@ -690,7 +690,6 @@ static int
690 690
 ppt_unlzw(const char *dir, int fd, uint32_t length)
691 691
 {
692 692
 	int ofd;
693
-	uint32_t bufflen;
694 693
 	z_stream stream;
695 694
 	unsigned char inbuff[PPT_LZW_BUFFSIZE], outbuff[PPT_LZW_BUFFSIZE];
696 695
 	char fullname[NAME_MAX + 1];
... ...
@@ -727,8 +726,6 @@ ppt_unlzw(const char *dir, int fd, uint32_t length)
727 727
 		return FALSE;
728 728
 	}
729 729
 
730
-	bufflen = stream.avail_in;
731
-
732 730
 	do {
733 731
 		if (stream.avail_out == 0) {
734 732
 			if (cli_writen(ofd, outbuff, PPT_LZW_BUFFSIZE)
... ...
@@ -742,7 +739,7 @@ ppt_unlzw(const char *dir, int fd, uint32_t length)
742 742
 		}
743 743
 		if (stream.avail_in == 0) {
744 744
 			stream.next_in = inbuff;
745
-			bufflen = stream.avail_in = MIN(length, PPT_LZW_BUFFSIZE);
745
+			stream.avail_in = MIN(length, PPT_LZW_BUFFSIZE);
746 746
 			if (cli_readn(fd, inbuff, stream.avail_in) != (int)stream.avail_in) {
747 747
 				close(ofd);
748 748
 				inflateEnd(&stream);