summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMavridis Philippe <[email protected]>2021-01-13 20:12:37 +0200
committerMavridis Philippe <[email protected]>2021-01-13 20:12:37 +0200
commit522bc92a7e95eab9e940c0c3a869aac2939f0793 (patch)
treea56623b67a28eb41017132784d30b6d523b1679d
parent8ce8d981f0c75dc0d85b413cf03c171f5d2be2cc (diff)
downloadklamav-522bc92a7e95eab9e940c0c3a869aac2939f0793.tar.gz
klamav-522bc92a7e95eab9e940c0c3a869aac2939f0793.zip
Virus Browser: Fixed gzFile usage
Signed-off-by: Mavridis Philippe <[email protected]>
-rw-r--r--src/dbviewer.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/dbviewer.cpp b/src/dbviewer.cpp
index 4e128c6..ea65463 100644
--- a/src/dbviewer.cpp
+++ b/src/dbviewer.cpp
@@ -430,11 +430,11 @@ int cli_untgz(int fd, const char *destdir)
int nbytes, nread, nwritten, in_block = 0;
unsigned int size;
FILE *outfile = NULL;
- gzFile *infile;
+ gzFile infile;
printf("in cli_untgz()\n");
- if((infile = (gzFile*) gzdopen(fd, "rb")) == NULL) {
+ if((infile = gzdopen(fd, "rb")) == NULL) {
printf("Can't gzdopen() descriptor %d\n", fd);
return -1;
}