summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMavridis Philippe <mavridisf@gmail.com>2021-01-13 20:12:37 +0200
committerMavridis Philippe <mavridisf@gmail.com>2021-01-13 20:12:37 +0200
commit522bc92a7e95eab9e940c0c3a869aac2939f0793 (patch)
treea56623b67a28eb41017132784d30b6d523b1679d /src
parent8ce8d981f0c75dc0d85b413cf03c171f5d2be2cc (diff)
downloadklamav-522bc92a7e95eab9e940c0c3a869aac2939f0793.tar.gz
klamav-522bc92a7e95eab9e940c0c3a869aac2939f0793.zip
Virus Browser: Fixed gzFile usage
Signed-off-by: Mavridis Philippe <mavridisf@gmail.com>
Diffstat (limited to 'src')
-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;
}