diff options
author | Mavridis Philippe <mavridisf@gmail.com> | 2021-01-13 20:12:37 +0200 |
---|---|---|
committer | Mavridis Philippe <mavridisf@gmail.com> | 2021-01-13 20:12:37 +0200 |
commit | 522bc92a7e95eab9e940c0c3a869aac2939f0793 (patch) | |
tree | a56623b67a28eb41017132784d30b6d523b1679d | |
parent | 8ce8d981f0c75dc0d85b413cf03c171f5d2be2cc (diff) | |
download | klamav-522bc92a7e95eab9e940c0c3a869aac2939f0793.tar.gz klamav-522bc92a7e95eab9e940c0c3a869aac2939f0793.zip |
Virus Browser: Fixed gzFile usage
Signed-off-by: Mavridis Philippe <mavridisf@gmail.com>
-rw-r--r-- | src/dbviewer.cpp | 4 |
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; } |